/external/skia/src/gpu/glsl/ |
D | GrGLSLProgramBuilder.cpp | 77 const GrGeometryProcessor& geomProc = this->geometryProcessor(); in emitAndInstallPrimProc() local 86 if (geomProc.willUseGeoShader()) { in emitAndInstallPrimProc() 88 } else if (geomProc.willUseTessellationShaders()) { in emitAndInstallPrimProc() 96 fFS.codeAppendf("// Stage %d, %s\n", fStageIndex, geomProc.name()); in emitAndInstallPrimProc() 97 fVS.codeAppendf("// Primitive Processor %s\n", geomProc.name()); in emitAndInstallPrimProc() 100 fGeometryProcessor.reset(geomProc.createGLSLInstance(*this->shaderCaps())); in emitAndInstallPrimProc() 102 SkAutoSTArray<4, SamplerHandle> texSamplers(geomProc.numTextureSamplers()); in emitAndInstallPrimProc() 103 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in emitAndInstallPrimProc() 106 const auto& sampler = geomProc.textureSampler(i); in emitAndInstallPrimProc() 107 texSamplers[i] = this->emitSampler(geomProc.textureSampler(i).backendFormat(), in emitAndInstallPrimProc() [all …]
|
D | GrGLSLGeometryProcessor.h | 75 const GrGeometryProcessor& geomProc, in EmitArgs() 86 , fGeomProc(geomProc) in EmitArgs()
|
/external/skia/src/gpu/ |
D | GrProgramDesc.cpp | 57 const GrGeometryProcessor& geomProc, in add_geomproc_sampler_keys() argument 59 int numTextureSamplers = geomProc.numTextureSamplers(); in add_geomproc_sampler_keys() 62 const GrGeometryProcessor::TextureSampler& sampler = geomProc.textureSampler(i); in add_geomproc_sampler_keys() 82 static void gen_geomproc_key(const GrGeometryProcessor& geomProc, in gen_geomproc_key() argument 85 b->appendComment(geomProc.name()); in gen_geomproc_key() 86 b->addBits(kClassIDBits, geomProc.classID(), "geomProcClassID"); in gen_geomproc_key() 88 geomProc.getGLSLProcessorKey(*caps.shaderCaps(), b); in gen_geomproc_key() 89 geomProc.getAttributeKey(b); in gen_geomproc_key() 91 add_geomproc_sampler_keys(b, geomProc, caps); in gen_geomproc_key() 142 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 | 22 const GrGeometryProcessor* geomProc, in GrProgramInfo() argument 37 , fGeomProc(geomProc) in GrProgramInfo() 67 const GrGeometryProcessor& geomProc() const { return *fGeomProc; } in geomProc() function
|
D | GrOpFlushState.h | 206 void bindTextures(const GrGeometryProcessor& geomProc, in bindTextures() argument 209 SkASSERT(geomProc.numTextureSamplers() == 1); in bindTextures() 211 this->bindTextures(geomProc, &ptr, pipeline); in bindTextures() 224 void bindTextures(const GrGeometryProcessor& geomProc, in bindTextures() argument 227 fOpsRenderPass->bindTextures(geomProc, geomProcTextures, pipeline); in bindTextures()
|
D | GrOpFlushState.cpp | 64 this->bindTextures(programInfo.geomProc(), fCurrDraw->fGeomProcProxies, in executeDrawsAndUploadsForMeshDrawOp() 146 const GrGeometryProcessor* geomProc, in recordDraw() argument 156 for (int i = 0; i < geomProc->numTextureSamplers(); ++i) { in recordDraw() 160 draw.fGeometryProcessor = geomProc; in recordDraw()
|
/external/skia/src/gpu/gl/ |
D | GrGLProgram.cpp | 101 this->setRenderTargetState(renderTarget, programInfo.origin(), programInfo.geomProc()); in updateUniforms() 111 programInfo.geomProc()); in updateUniforms() 127 void GrGLProgram::bindTextures(const GrGeometryProcessor& geomProc, in bindTextures() argument 130 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in bindTextures() 133 fGpu->bindTexture(i, geomProc.textureSampler(i).samplerState(), in bindTextures() 134 geomProc.textureSampler(i).swizzle(), overrideTexture); in bindTextures() 136 int nextTexSamplerIdx = geomProc.numTextureSamplers(); in bindTextures() 156 const GrGeometryProcessor& geomProc) { in setRenderTargetState() argument
|
/external/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() 233 const GrGeometryProcessor& geomProc = this->geometryProcessor(); in finalize() local 258 this->computeCountsAndStrides(programID, geomProc, false); in finalize() 290 this->computeCountsAndStrides(programID, geomProc, false); in finalize() [all …]
|
/external/skia/src/gpu/d3d/ |
D | GrD3DPipelineStateBuilder.cpp | 240 static void setup_vertex_input_layout(const GrGeometryProcessor& geomProc, in setup_vertex_input_layout() argument 245 if (geomProc.hasVertexAttributes()) { in setup_vertex_input_layout() 248 if (geomProc.hasInstanceAttributes()) { in setup_vertex_input_layout() 255 for (const auto& attrib : geomProc.vertexAttributes()) { in setup_vertex_input_layout() 265 SkASSERT(vertexAttributeOffset == geomProc.vertexStride()); in setup_vertex_input_layout() 268 for (const auto& attrib : geomProc.instanceAttributes()) { in setup_vertex_input_layout() 278 SkASSERT(instanceAttributeOffset == geomProc.instanceStride()); in setup_vertex_input_layout() 528 unsigned int totalAttributeCnt = programInfo.geomProc().numVertexAttributes() + in create_pipeline_state() 529 programInfo.geomProc().numInstanceAttributes(); in create_pipeline_state() 531 setup_vertex_input_layout(programInfo.geomProc(), inputElements.get()); in create_pipeline_state() [all …]
|
D | GrD3DPipelineState.cpp | 49 fGeometryProcessor->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindConstants() 93 const GrGeometryProcessor& geomProc, in setAndBindTextures() argument 96 SkASSERT(geomProcTextures || !geomProc.numTextureSamplers()); in setAndBindTextures() 102 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in setAndBindTextures() 104 const auto& sampler = geomProc.textureSampler(i); in setAndBindTextures()
|
/external/skia/src/gpu/dawn/ |
D | GrDawnProgramBuilder.cpp | 342 const GrGeometryProcessor& geomProc = programInfo.geomProc(); in Build() local 344 if (geomProc.numVertexAttributes() > 0) { in Build() 346 for (const auto& attrib : geomProc.vertexAttributes()) { in Build() 363 if (geomProc.numInstanceAttributes() > 0) { in Build() 365 for (const auto& attrib : geomProc.instanceAttributes()) { in Build() 499 const GrGeometryProcessor& geomProc = programInfo.geomProc(); in setUniformData() local 500 fGeometryProcessor->setData(fDataManager, *gpu->caps()->shaderCaps(), geomProc); in setUniformData() 516 const GrGeometryProcessor& geomProc, in setTextures() argument 525 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in setTextures() 527 auto& sampler = geomProc.textureSampler(i); in setTextures()
|
/external/skia/src/gpu/tessellate/ |
D | GrFillPathShader.cpp | 42 const GrGeometryProcessor& geomProc) override { in setData() argument 43 const GrFillPathShader& shader = geomProc.cast<GrFillPathShader>(); in setData() 50 const SkRect& b = geomProc.cast<GrFillBoundingBoxShader>().pathBounds(); in setData()
|
D | GrStrokeTessellateShader.cpp | 417 const GrGeometryProcessor& geomProc) override { in setData() argument 418 const auto& shader = geomProc.cast<GrStrokeTessellateShader>(); in setData() 463 const GrGeometryProcessor& geomProc, in getTessControlShaderGLSL() argument 467 const auto& shader = geomProc.cast<GrStrokeTessellateShader>(); in getTessControlShaderGLSL() 823 const GrGeometryProcessor& geomProc, in getTessEvaluationShaderGLSL() argument 827 const auto& shader = geomProc.cast<GrStrokeTessellateShader>(); in getTessEvaluationShaderGLSL() 1273 const GrGeometryProcessor& geomProc) override { in setData() argument 1274 const auto& shader = geomProc.cast<GrStrokeTessellateShader>(); in setData()
|
/external/skia/gm/ |
D | fwidth_squircle.cpp | 130 const GrGeometryProcessor& geomProc) override { in setData() argument 131 const auto& proc = geomProc.cast<FwidthSquircleTestProcessor>(); in setData() 174 GrGeometryProcessor* geomProc = FwidthSquircleTestProcessor::Make(arena, fViewMatrix); in createProgramInfo() local 178 geomProc, SkBlendMode::kSrcOver, in createProgramInfo()
|
D | tessellation.cpp | 152 const GrGeometryProcessor& geomProc) override { in setData() argument 154 geomProc.cast<TessellationTestTriShader>().fViewMatrix); in setData() 260 const GrGeometryProcessor& geomProc) override { in setData() argument 262 geomProc.cast<TessellationTestRectShader>().fViewMatrix); in setData()
|
/external/skia/src/gpu/vk/ |
D | GrVkPipelineState.cpp | 81 fGeometryProcessor->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindUniforms() 115 const GrGeometryProcessor& geomProc, in setAndBindTextures() argument 119 SkASSERT(geomProcTextures || !geomProc.numTextureSamplers()); in setAndBindTextures() 130 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in setAndBindTextures() 132 const auto& sampler = geomProc.textureSampler(i); in setAndBindTextures()
|
/external/skia/tools/gpu/ |
D | ProxyUtils.cpp | 96 GrGeometryProcessor* geomProc, in CreateProgramInfo() argument 116 geomProc, std::move(processors), in CreateProgramInfo()
|
D | TestOps.cpp | 51 const GrGeometryProcessor& geomProc) override { in setData() argument 52 const auto& gp = geomProc.cast<GP>(); in setData() 220 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
|
/external/skia/src/gpu/mtl/ |
D | GrMtlPipelineState.mm | 59 fGeometryProcessor->setData(fDataManager, *fGpu->caps()->shaderCaps(), programInfo.geomProc()); 87 void GrMtlPipelineState::setTextures(const GrGeometryProcessor& geomProc, 91 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { 93 const auto& sampler = geomProc.textureSampler(i);
|
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()); 517 pipelineDescriptor.vertexDescriptor = create_vertex_descriptor(programInfo.geomProc(),
|
/external/skia/bench/ |
D | VertexColorSpaceBench.cpp | 85 const GrGeometryProcessor& geomProc) override { in createGLSLInstance() argument 86 const GP& gp = geomProc.cast<GP>(); in createGLSLInstance() 199 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() 267 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
|
/external/skia/src/gpu/effects/ |
D | GrBezierEffect.cpp | 29 const GrGeometryProcessor& geomProc) override { in setData() argument 30 const GrConicEffect& ce = geomProc.cast<GrConicEffect>(); in setData() 239 const GrGeometryProcessor& geomProc) override { in setData() argument 240 const GrQuadEffect& qe = geomProc.cast<GrQuadEffect>(); in setData()
|
D | GrDistanceFieldGeoProc.cpp | 164 const GrGeometryProcessor& geomProc) override { in setData() argument 165 const GrDistanceFieldA8TextGeoProc& dfa8gp = geomProc.cast<GrDistanceFieldA8TextGeoProc>(); in setData() 454 const GrGeometryProcessor& geomProc) override { in setData() argument 455 const GrDistanceFieldPathGeoProc& dfpgp = geomProc.cast<GrDistanceFieldPathGeoProc>(); in setData() 767 const GrGeometryProcessor& geomProc) override { in setData() argument 770 const GrDistanceFieldLCDTextGeoProc& dflcd = geomProc.cast<GrDistanceFieldLCDTextGeoProc>(); in setData()
|
/external/skia/tests/ |
D | PrimitiveProcessorTest.cpp | 146 size_t vertexStride = fProgramInfo->geomProc().vertexStride(); in onPrepareDraws() 159 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
|