/third_party/skia/src/gpu/ |
D | GrProgramDesc.cpp | 58 const GrGeometryProcessor& geomProc, in add_geomproc_sampler_keys() argument 60 int numTextureSamplers = geomProc.numTextureSamplers(); in add_geomproc_sampler_keys() 63 const GrGeometryProcessor::TextureSampler& sampler = geomProc.textureSampler(i); in add_geomproc_sampler_keys() 83 static void gen_geomproc_key(const GrGeometryProcessor& geomProc, in gen_geomproc_key() argument 86 b->appendComment(geomProc.name()); in gen_geomproc_key() 87 b->addBits(kClassIDBits, geomProc.classID(), "geomProcClassID"); in gen_geomproc_key() 89 geomProc.addToKey(*caps.shaderCaps(), b); in gen_geomproc_key() 90 geomProc.getAttributeKey(b); in gen_geomproc_key() 92 add_geomproc_sampler_keys(b, geomProc, caps); in gen_geomproc_key() 147 gen_geomproc_key(programInfo.geomProc(), caps, b); in gen_key()
|
D | GrOpsRenderPass.cpp | 67 if (programInfo.geomProc().hasInstanceAttributes()) { in bindPipeline() 94 if (programInfo.geomProc().numVertexAttributes() > this->gpu()->caps()->maxVertexAttributes()) { in bindPipeline() 107 bool hasTextures = (programInfo.geomProc().numTextureSamplers() > 0); in bindPipeline() 116 fInstanceBufferStatus = (programInfo.geomProc().hasInstanceAttributes()) ? in bindPipeline() 118 fVertexBufferStatus = (programInfo.geomProc().hasVertexAttributes()) ? in bindPipeline() 136 void GrOpsRenderPass::bindTextures(const GrGeometryProcessor& geomProc, in bindTextures() argument 140 SkASSERT((geomProc.numTextureSamplers() > 0) == SkToBool(geomProcTextures)); in bindTextures() 141 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in bindTextures() 142 const auto& sampler = geomProc.textureSampler(i); in bindTextures() 167 if (!this->onBindTextures(geomProc, geomProcTextures, pipeline)) { in bindTextures()
|
D | GrProgramInfo.h | 24 const GrGeometryProcessor* geomProc, in GrProgramInfo() argument 40 , fGeomProc(geomProc) in GrProgramInfo() 66 const GrGeometryProcessor& geomProc() const { return *fGeomProc; } in geomProc() function
|
D | GrOpFlushState.h | 205 void bindTextures(const GrGeometryProcessor& geomProc, in bindTextures() argument 208 SkASSERT(geomProc.numTextureSamplers() == 1); in bindTextures() 210 this->bindTextures(geomProc, &ptr, pipeline); in bindTextures() 223 void bindTextures(const GrGeometryProcessor& geomProc, in bindTextures() argument 226 fOpsRenderPass->bindTextures(geomProc, geomProcTextures, pipeline); in bindTextures()
|
D | GrOpFlushState.cpp | 66 this->bindTextures(programInfo.geomProc(), fCurrDraw->fGeomProcProxies, in executeDrawsAndUploadsForMeshDrawOp() 155 const GrGeometryProcessor* geomProc, in recordDraw() argument 165 for (int i = 0; i < geomProc->numTextureSamplers(); ++i) { in recordDraw() 169 draw.fGeometryProcessor = geomProc; in recordDraw()
|
/third_party/skia/src/gpu/gl/ |
D | GrGLProgram.cpp | 101 this->setRenderTargetState(renderTarget, programInfo.origin(), programInfo.geomProc()); in updateUniforms() 109 fGPImpl->setData(fProgramDataManager, *fGpu->caps()->shaderCaps(), programInfo.geomProc()); in updateUniforms() 123 void GrGLProgram::bindTextures(const GrGeometryProcessor& geomProc, in bindTextures() argument 127 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in bindTextures() 130 fGpu->bindTexture(i, geomProc.textureSampler(i).samplerState(), in bindTextures() 131 geomProc.textureSampler(i).swizzle(), overrideTexture); in bindTextures() 133 int nextTexSamplerIdx = geomProc.numTextureSamplers(); in bindTextures() 153 const GrGeometryProcessor& geomProc) { in setRenderTargetState() argument
|
/third_party/skia/src/gpu/gl/builders/ |
D | GrGLProgramBuilder.cpp | 120 const GrGeometryProcessor& geomProc, in computeCountsAndStrides() argument 122 fVertexAttributeCnt = geomProc.numVertexAttributes(); in computeCountsAndStrides() 123 fInstanceAttributeCnt = geomProc.numInstanceAttributes(); in computeCountsAndStrides() 138 for (const auto& attr : geomProc.vertexAttributes()) { in computeCountsAndStrides() 141 SkASSERT(fVertexStride == geomProc.vertexStride()); in computeCountsAndStrides() 143 for (const auto& attr : geomProc.instanceAttributes()) { in computeCountsAndStrides() 146 SkASSERT(fInstanceStride == geomProc.instanceStride()); in computeCountsAndStrides() 258 const GrGeometryProcessor& geomProc = this->geometryProcessor(); in finalize() local 281 this->computeCountsAndStrides(programID, geomProc, false); in finalize() 313 this->computeCountsAndStrides(programID, geomProc, false); in finalize() [all …]
|
/third_party/skia/src/gpu/glsl/ |
D | GrGLSLProgramBuilder.cpp | 73 const GrGeometryProcessor& geomProc = this->geometryProcessor(); in emitAndInstallPrimProc() local 82 if (geomProc.willUseTessellationShaders()) { in emitAndInstallPrimProc() 90 fFS.codeAppendf("// Stage %d, %s\n", fStageIndex, geomProc.name()); in emitAndInstallPrimProc() 91 fVS.codeAppendf("// Primitive Processor %s\n", geomProc.name()); in emitAndInstallPrimProc() 94 fGPImpl = geomProc.makeProgramImpl(*this->shaderCaps()); in emitAndInstallPrimProc() 96 SkAutoSTArray<4, SamplerHandle> texSamplers(geomProc.numTextureSamplers()); in emitAndInstallPrimProc() 97 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in emitAndInstallPrimProc() 100 const auto& sampler = geomProc.textureSampler(i); in emitAndInstallPrimProc() 101 texSamplers[i] = this->emitSampler(geomProc.textureSampler(i).backendFormat(), in emitAndInstallPrimProc() 115 geomProc, in emitAndInstallPrimProc() [all …]
|
/third_party/skia/src/gpu/d3d/ |
D | GrD3DPipelineStateBuilder.cpp | 235 static void setup_vertex_input_layout(const GrGeometryProcessor& geomProc, in setup_vertex_input_layout() argument 240 if (geomProc.hasVertexAttributes()) { in setup_vertex_input_layout() 243 if (geomProc.hasInstanceAttributes()) { in setup_vertex_input_layout() 250 for (const auto& attrib : geomProc.vertexAttributes()) { in setup_vertex_input_layout() 260 SkASSERT(vertexAttributeOffset == geomProc.vertexStride()); in setup_vertex_input_layout() 263 for (const auto& attrib : geomProc.instanceAttributes()) { in setup_vertex_input_layout() 273 SkASSERT(instanceAttributeOffset == geomProc.instanceStride()); in setup_vertex_input_layout() 521 unsigned int totalAttributeCnt = programInfo.geomProc().numVertexAttributes() + in create_pipeline_state() 522 programInfo.geomProc().numInstanceAttributes(); in create_pipeline_state() 524 setup_vertex_input_layout(programInfo.geomProc(), inputElements.get()); in create_pipeline_state() [all …]
|
D | GrD3DPipelineState.cpp | 51 fGPImpl->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindConstants() 94 const GrGeometryProcessor& geomProc, in setAndBindTextures() argument 97 SkASSERT(geomProcTextures || !geomProc.numTextureSamplers()); in setAndBindTextures() 103 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in setAndBindTextures() 105 const auto& sampler = geomProc.textureSampler(i); in setAndBindTextures()
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnProgramBuilder.cpp | 338 const GrGeometryProcessor& geomProc = programInfo.geomProc(); in Build() local 340 if (geomProc.numVertexAttributes() > 0) { in Build() 342 for (const auto& attrib : geomProc.vertexAttributes()) { in Build() 359 if (geomProc.numInstanceAttributes() > 0) { in Build() 361 for (const auto& attrib : geomProc.instanceAttributes()) { in Build() 502 const GrGeometryProcessor& geomProc = programInfo.geomProc(); in setUniformData() local 503 fGPImpl->setData(fDataManager, *gpu->caps()->shaderCaps(), geomProc); in setUniformData() 520 const GrGeometryProcessor& geomProc, in setTextures() argument 529 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in setTextures() 531 auto& sampler = geomProc.textureSampler(i); in setTextures()
|
/third_party/skia/src/gpu/ops/ |
D | DrawAtlasPathOp.cpp | 74 const GrGeometryProcessor& geomProc) override { in setData() argument 75 auto* atlasHelper = geomProc.cast<DrawAtlasPathShader>().fAtlasHelper; in setData() 195 fProgram->geomProc().instanceStride(), fInstanceCount, &fInstanceBuffer, in onPrepare() 217 if (fProgram->geomProc().hasVertexAttributes() && !fVertexBufferIfNoIDSupport) { in onExecute() 221 flushState->bindTextures(fProgram->geomProc(), *fAtlasHelper.proxy(), fProgram->pipeline()); in onExecute()
|
D | PathTessellateOp.cpp | 112 auto tessShader = &fTessellationProgram->geomProc().cast<GrPathTessellationShader>(); in onPrepare() 125 flushState->bindTextures(fTessellationProgram->geomProc(), nullptr, in onExecute() 127 fTessellator->draw(flushState, fTessellationProgram->geomProc().willUseTessellationShaders()); in onExecute()
|
D | PathStencilCoverOp.cpp | 262 auto tessShader = &fStencilPathProgram->geomProc().cast<GrPathTessellationShader>(); in onPrepare() 271 size_t instanceStride = fCoverBBoxProgram->geomProc().instanceStride(); in onPrepare() 322 fCoverBBoxProgram->geomProc().hasVertexAttributes() && in onExecute() 339 fTessellator->draw(flushState, fStencilPathProgram->geomProc().willUseTessellationShaders()); in onExecute() 347 flushState->bindTextures(fCoverBBoxProgram->geomProc(), nullptr, in onExecute()
|
D | PathInnerTriangulateOp.cpp | 448 auto tessShader = &fStencilCurvesProgram->geomProc().cast<GrPathTessellationShader>(); in onPrepare() 472 fCoverHullsProgram->geomProc().hasVertexAttributes() && in onExecute() 481 fStencilCurvesProgram->geomProc().willUseTessellationShaders()); in onExecute() 491 flushState->bindTextures(fanProgram->geomProc(), nullptr, fanProgram->pipeline()); in onExecute() 500 flushState->bindTextures(fCoverHullsProgram->geomProc(), nullptr, *fPipelineForFills); in onExecute()
|
/third_party/skia/src/gpu/vk/ |
D | GrVkPipelineState.cpp | 82 fGPImpl->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindUniforms() 113 const GrGeometryProcessor& geomProc, in setAndBindTextures() argument 117 SkASSERT(geomProcTextures || !geomProc.numTextureSamplers()); in setAndBindTextures() 128 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in setAndBindTextures() 130 const auto& sampler = geomProc.textureSampler(i); in setAndBindTextures()
|
/third_party/skia/gm/ |
D | fwidth_squircle.cpp | 94 const GrGeometryProcessor& geomProc) override { in makeProgramImpl() argument 95 const auto& proc = geomProc.cast<FwidthSquircleTestProcessor>(); in makeProgramImpl() 179 GrGeometryProcessor* geomProc = FwidthSquircleTestProcessor::Make(arena, fViewMatrix); in createProgramInfo() local 183 geomProc, SkBlendMode::kSrcOver, in createProgramInfo()
|
D | tessellation.cpp | 70 const GrGeometryProcessor& geomProc) override { in setData() argument 72 geomProc.cast<TessellationTestTriShader>().fViewMatrix); in setData() 189 const GrGeometryProcessor& geomProc) override { in setData() argument 191 geomProc.cast<TessellationTestRectShader>().fViewMatrix); in setData()
|
/third_party/skia/src/gpu/tessellate/shaders/ |
D | GrStrokeTessellationShader_HardwareImpl.cpp | 317 const GrGeometryProcessor& geomProc, in getTessControlShaderGLSL() argument 321 const auto& shader = geomProc.cast<GrStrokeTessellationShader>(); in getTessControlShaderGLSL() 525 const GrGeometryProcessor& geomProc, in getTessEvaluationShaderGLSL() argument 529 const auto& shader = geomProc.cast<GrStrokeTessellationShader>(); in getTessEvaluationShaderGLSL()
|
/third_party/skia/tools/gpu/ |
D | ProxyUtils.cpp | 101 GrGeometryProcessor* geomProc, in CreateProgramInfo() argument 121 geomProc, std::move(processors), in CreateProgramInfo()
|
D | TestOps.cpp | 39 const GrGeometryProcessor& geomProc) override { in makeProgramImpl() argument 40 const auto& gp = geomProc.cast<GP>(); in makeProgramImpl() 218 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlPipelineStateBuilder.mm | 178 static MTLVertexDescriptor* create_vertex_descriptor(const GrGeometryProcessor& geomProc, 183 if (geomProc.hasVertexAttributes()) { 187 if (geomProc.hasInstanceAttributes()) { 198 int vertexAttributeCount = geomProc.numVertexAttributes(); 203 for (const auto& attribute : geomProc.vertexAttributes()) { 219 SkASSERT(vertexAttributeOffset == geomProc.vertexStride()); 232 int instanceAttributeCount = geomProc.numInstanceAttributes(); 237 for (const auto& attribute : geomProc.instanceAttributes()) { 253 SkASSERT(instanceAttributeOffset == geomProc.instanceStride()); 514 pipelineDescriptor.vertexDescriptor = create_vertex_descriptor(programInfo.geomProc(),
|
D | GrMtlPipelineState.mm | 67 fGPImpl->setData(fDataManager, *fGpu->caps()->shaderCaps(), programInfo.geomProc()); 94 void GrMtlPipelineState::setTextures(const GrGeometryProcessor& geomProc, 98 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { 100 const auto& sampler = geomProc.textureSampler(i);
|
/third_party/skia/bench/ |
D | VertexColorSpaceBench.cpp | 52 const GrGeometryProcessor& geomProc) override { in makeProgramImpl() argument 53 const GP& gp = geomProc.cast<GP>(); in makeProgramImpl() 203 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() 271 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
|
/third_party/skia/src/gpu/effects/ |
D | GrBezierEffect.cpp | 20 const GrGeometryProcessor& geomProc) override { in setData() argument 21 const GrConicEffect& ce = geomProc.cast<GrConicEffect>(); in setData() 208 const GrGeometryProcessor& geomProc) override { in setData() argument 209 const GrQuadEffect& qe = geomProc.cast<GrQuadEffect>(); in setData()
|