Home
last modified time | relevance | path

Searched refs:primProc (Results 1 – 25 of 30) sorted by relevance

12

/external/skqp/src/gpu/
DGrGpuCommandBuffer.cpp34 bool GrGpuRTCommandBuffer::draw(const GrPrimitiveProcessor& primProc, const GrPipeline& pipeline, in draw() argument
39 SkASSERT(!primProc.hasInstanceAttributes() || this->gpu()->caps()->instanceAttribSupport()); in draw()
43 SkASSERT(primProc.hasVertexAttributes() == meshes[i].hasVertexData()); in draw()
44 SkASSERT(primProc.hasInstanceAttributes() == meshes[i].isInstanced()); in draw()
56 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in draw()
63 int n = primProc.numTextureSamplers() * meshCount; in draw()
74 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in draw()
80 primProcProxies[j*primProc.numTextureSamplers() + i]; in draw()
90 if (primProc.numVertexAttributes() > this->gpu()->caps()->maxVertexAttributes()) { in draw()
94 this->onDraw(primProc, pipeline, fixedDynamicState, dynamicStateArrays, meshes, meshCount, in draw()
DGrProgramDesc.cpp178 static bool gen_frag_proc_and_meta_keys(const GrPrimitiveProcessor& primProc, in gen_frag_proc_and_meta_keys() argument
184 if (!gen_frag_proc_and_meta_keys(primProc, fp.childProcessor(i), gpu, shaderCaps, b)) { in gen_frag_proc_and_meta_keys()
191 return gen_meta_key(fp, gpu, shaderCaps, primProc.getTransformKey(fp.coordTransforms(), in gen_frag_proc_and_meta_keys()
197 const GrPrimitiveProcessor& primProc, in Build() argument
215 primProc.getGLSLProcessorKey(shaderCaps, &b); in Build()
216 primProc.getAttributeKey(&b); in Build()
217 if (!gen_meta_key(primProc, shaderCaps, 0, &b)) { in Build()
224 if (!gen_frag_proc_and_meta_keys(primProc, fp, gpu, shaderCaps, &b)) { in Build()
DGrPathRendering.cpp54 const GrPrimitiveProcessor& primProc, in drawPath() argument
65 this->onDrawPath(renderTarget, origin, primProc, pipeline, fixedDynamicState, in drawPath()
DGrPathProcessor.cpp75 const GrPrimitiveProcessor& primProc, in setData() argument
77 const GrPathProcessor& pathProc = primProc.cast<GrPathProcessor>(); in setData()
DGrPathRendering.h113 const GrPrimitiveProcessor& primProc,
/external/skqp/src/gpu/gl/
DGrGLProgram.cpp77 const GrPrimitiveProcessor& primProc, in updateUniformsAndTextureBindings() argument
80 this->setRenderTargetState(renderTarget, origin, primProc); in updateUniformsAndTextureBindings()
88 fPrimitiveProcessor->setData(fProgramDataManager, primProc, in updateUniformsAndTextureBindings()
91 this->updatePrimitiveProcessorTextureBindings(primProc, primProcTextures); in updateUniformsAndTextureBindings()
93 int nextTexSamplerIdx = primProc.numTextureSamplers(); in updateUniformsAndTextureBindings()
109 void GrGLProgram::updatePrimitiveProcessorTextureBindings(const GrPrimitiveProcessor& primProc, in updatePrimitiveProcessorTextureBindings() argument
111 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in updatePrimitiveProcessorTextureBindings()
113 fGpu->bindTexture(i, primProc.textureSampler(i).samplerState(), tex); in updatePrimitiveProcessorTextureBindings()
136 const GrPrimitiveProcessor& primProc) { in setRenderTargetState() argument
150 if (!primProc.isPathRendering()) { in setRenderTargetState()
[all …]
DGrGLGpuProgramCache.cpp74 const GrPrimitiveProcessor& primProc, in refProgram() argument
84 if (!GrProgramDesc::Build(&desc, renderTarget->config(), primProc, isPoints, pipeline, gpu)) { in refProgram()
100 primProc, primProcProxies, in refProgram()
DGrGLGpuCommandBuffer.h81 void onDraw(const GrPrimitiveProcessor& primProc, in onDraw() argument
88 fGpu->draw(fRenderTarget, fOrigin, primProc, pipeline, fixedDynamicState, in onDraw()
DGrGLPathRendering.cpp116 const GrPrimitiveProcessor& primProc, in onDrawPath() argument
121 if (!this->gpu()->flushGLState(renderTarget, origin, primProc, pipeline, in onDrawPath()
/external/skqp/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp33 const GrPrimitiveProcessor& primProc, in CreateProgram() argument
46 pipeline, primProc, primProcProxies, desc); in CreateProgram()
68 const GrPrimitiveProcessor& primProc, in GrGLProgramBuilder() argument
71 : INHERITED(renderTarget, origin, primProc, primProcProxies, pipeline, desc) in GrGLProgramBuilder()
136 const GrPrimitiveProcessor& primProc, in computeCountsAndStrides() argument
138 fVertexAttributeCnt = primProc.numVertexAttributes(); in computeCountsAndStrides()
139 fInstanceAttributeCnt = primProc.numInstanceAttributes(); in computeCountsAndStrides()
154 for (const auto& attr : primProc.vertexAttributes()) { in computeCountsAndStrides()
157 SkASSERT(fVertexStride == primProc.vertexStride()); in computeCountsAndStrides()
159 for (const auto& attr : primProc.instanceAttributes()) { in computeCountsAndStrides()
[all …]
DGrGLProgramBuilder.h69 void computeCountsAndStrides(GrGLuint programID, const GrPrimitiveProcessor& primProc,
/external/skqp/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm21 const GrPrimitiveProcessor& primProc,
26 GrMtlPipelineStateBuilder builder(renderTarget, origin, primProc, primProcProxies, pipeline,
32 return builder.finalize(primProc, pipeline, desc);
36 const GrPrimitiveProcessor& primProc,
41 : INHERITED(renderTarget, origin, primProc, primProcProxies, pipeline, desc)
150 static MTLVertexDescriptor* create_vertex_descriptor(const GrPrimitiveProcessor& primProc) {
154 if (primProc.hasVertexAttributes()) {
158 if (primProc.hasInstanceAttributes()) {
165 int vertexAttributeCount = primProc.numVertexAttributes();
167 for (const auto& attribute : primProc.vertexAttributes()) {
[all …]
DGrMtlGpuCommandBuffer.mm108 const GrPrimitiveProcessor& primProc,
122 if (!GrProgramDesc::Build(&desc, fRenderTarget->config(), primProc, hasPoints,
131 SkASSERT(SkToBool(primProcProxies) == SkToBool(primProc.numTextureSamplers()));
135 GrMtlPipelineStateBuilder::CreatePipelineState(fRenderTarget, fOrigin, primProc,
144 pipelineState->setData(fRenderTarget, fOrigin, primProc, pipeline, primProcProxies);
149 void GrMtlGpuRTCommandBuffer::onDraw(const GrPrimitiveProcessor& primProc,
164 this->prepareDrawState(primProc, pipeline, fixedDynamicState, meshes, meshCount));
DGrMtlPipelineState.mm65 const GrPrimitiveProcessor& primProc,
68 SkASSERT(primProcTextures || !primProc.numTextureSamplers());
71 fGeometryProcessor->setData(fDataManager, primProc,
74 for (int i = 0; i < primProc.numTextureSamplers(); ++i) {
75 const auto& sampler = primProc.textureSampler(i);
DGrMtlGpuCommandBuffer.h73 const GrPrimitiveProcessor& primProc,
79 void onDraw(const GrPrimitiveProcessor& primProc,
/external/skqp/src/gpu/vk/
DGrVkPipeline.cpp78 static void setup_vertex_input_state(const GrPrimitiveProcessor& primProc, in setup_vertex_input_state() argument
85 if (primProc.hasVertexAttributes()) { in setup_vertex_input_state()
89 if (primProc.hasInstanceAttributes()) { in setup_vertex_input_state()
94 int vaCount = primProc.numVertexAttributes(); in setup_vertex_input_state()
97 for (const auto& attrib : primProc.vertexAttributes()) { in setup_vertex_input_state()
105 SkASSERT(vertexAttributeOffset == primProc.vertexStride()); in setup_vertex_input_state()
107 int iaCount = primProc.numInstanceAttributes(); in setup_vertex_input_state()
109 for (const auto& attrib : primProc.instanceAttributes()) { in setup_vertex_input_state()
117 SkASSERT(instanceAttributeOffset == primProc.instanceStride()); in setup_vertex_input_state()
119 if (primProc.hasVertexAttributes()) { in setup_vertex_input_state()
[all …]
DGrVkPipelineState.cpp145 const GrPrimitiveProcessor& primProc, in setAndBindUniforms() argument
150 fGeometryProcessor->setData(fDataManager, primProc, in setAndBindUniforms()
198 const GrPrimitiveProcessor& primProc, in setAndBindTextures() argument
202 SkASSERT(primProcTextures || !primProc.numTextureSamplers()); in setAndBindTextures()
211 fGeometryProcessor->setData(fDataManager, primProc, in setAndBindTextures()
213 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in setAndBindTextures()
214 const auto& sampler = primProc.textureSampler(i); in setAndBindTextures()
DGrVkGpuCommandBuffer.cpp636 const GrPrimitiveProcessor& primProc, in prepareDrawState() argument
653 SkASSERT(SkToBool(primProcProxies) == SkToBool(primProc.numTextureSamplers())); in prepareDrawState()
658 primProc, in prepareDrawState()
676 primProc, pipeline, cbInfo.currentCmdBuf()); in prepareDrawState()
681 pipelineState->setAndBindTextures(fGpu, primProc, pipeline, primProcProxies, in prepareDrawState()
704 void GrVkGpuRTCommandBuffer::onDraw(const GrPrimitiveProcessor& primProc, in onDraw() argument
738 for (int s = 0; s < primProc.numTextureSamplers(); ++s, ++i) { in onDraw()
740 prepareSampledImage(texture, primProc.textureSampler(s).samplerState().filter()); in onDraw()
744 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in onDraw()
746 prepareSampledImage(texture, primProc.textureSampler(i).samplerState().filter()); in onDraw()
[all …]
DGrVkPipelineStateCache.cpp80 const GrPrimitiveProcessor& primProc, in refPipelineState() argument
98 if (!GrVkPipelineStateBuilder::Desc::Build(&desc, renderTarget, primProc, pipeline, stencil, in refPipelineState()
115 fGpu, renderTarget, origin, primProc, primProcProxies, pipeline, stencil, in refPipelineState()
DGrVkPipelineStateBuilder.cpp23 const GrPrimitiveProcessor& primProc, in CreatePipelineState() argument
32 GrVkPipelineStateBuilder builder(gpu, renderTarget, origin, pipeline, primProc, in CreatePipelineState()
46 const GrPrimitiveProcessor& primProc, in GrVkPipelineStateBuilder() argument
49 : INHERITED(renderTarget, origin, primProc, primProcProxies, pipeline, desc) in GrVkPipelineStateBuilder()
395 const GrPrimitiveProcessor& primProc, in Build() argument
400 if (!INHERITED::Build(desc, renderTarget->config(), primProc, in Build()
/external/skqp/gm/
Dfwidth_squircle.cpp97 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument
99 const auto& proc = primProc.cast<FwidthSquircleTestProcessor>(); in setData()
/external/skqp/src/gpu/ccpr/
DGrCCPathProcessor.cpp102 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument
104 const GrCCPathProcessor& proc = primProc.cast<GrCCPathProcessor>(); in setData()
/external/skqp/src/gpu/effects/
DGrBezierEffect.cpp28 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument
30 const GrConicEffect& ce = primProc.cast<GrConicEffect>(); in setData()
279 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument
281 const GrQuadEffect& qe = primProc.cast<GrQuadEffect>(); in setData()
/external/skqp/bench/
DVertexColorSpaceBench.cpp95 const GrPrimitiveProcessor& primProc, in createGLSLInstance() argument
97 const GP& gp = primProc.cast<GP>(); in createGLSLInstance()
/external/skqp/src/gpu/glsl/
DGrGLSLProgramBuilder.cpp24 const GrPrimitiveProcessor& primProc, in GrGLSLProgramBuilder() argument
36 , fPrimProc(primProc) in GrGLSLProgramBuilder()

12