Home
last modified time | relevance | path

Searched refs:geomProc (Results 1 - 25 of 58) sorted by relevance

123

/third_party/skia/src/gpu/
H A DGrProgramDesc.cpp58 const GrGeometryProcessor& geomProc, in add_geomproc_sampler_keys()
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(), cap in gen_key()
57 add_geomproc_sampler_keys(GrProcessorKeyBuilder* b, const GrGeometryProcessor& geomProc, const GrCaps& caps) add_geomproc_sampler_keys() argument
[all...]
H A DGrOpsRenderPass.cpp72 if (programInfo.geomProc().hasInstanceAttributes()) { in bindPipeline()
99 if (programInfo.geomProc().numVertexAttributes() > this->gpu()->caps()->maxVertexAttributes()) { in bindPipeline()
112 bool hasTextures = (programInfo.geomProc().numTextureSamplers() > 0); in bindPipeline()
121 fInstanceBufferStatus = (programInfo.geomProc().hasInstanceAttributes()) ? in bindPipeline()
123 fVertexBufferStatus = (programInfo.geomProc().hasVertexAttributes()) ? in bindPipeline()
141 void GrOpsRenderPass::bindTextures(const GrGeometryProcessor& geomProc, in bindTextures() argument
145 SkASSERT((geomProc.numTextureSamplers() > 0) == SkToBool(geomProcTextures)); in bindTextures()
146 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in bindTextures()
147 const auto& sampler = geomProc.textureSampler(i); in bindTextures()
172 if (!this->onBindTextures(geomProc, geomProcTexture in bindTextures()
[all...]
H A DGrProgramInfo.h24 const GrGeometryProcessor* geomProc, in GrProgramInfo()
40 , fGeomProc(geomProc) in GrProgramInfo()
66 const GrGeometryProcessor& geomProc() const { return *fGeomProc; } in geomProc() function in GrProgramInfo
19 GrProgramInfo(const GrCaps& caps, const GrSurfaceProxyView& targetView, bool usesMSAASurface, const GrPipeline* pipeline, const GrUserStencilSettings* userStencilSettings, const GrGeometryProcessor* geomProc, GrPrimitiveType primitiveType, uint8_t tessellationPatchVertexCount, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) GrProgramInfo() argument
H A DGrOpFlushState.h205 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()
H A DGrOpFlushState.cpp66 this->bindTextures(programInfo.geomProc(), fCurrDraw->fGeomProcProxies, in executeDrawsAndUploadsForMeshDrawOp()
155 const GrGeometryProcessor* geomProc, in recordDraw()
165 for (int i = 0; i < geomProc->numTextureSamplers(); ++i) { in recordDraw()
169 draw.fGeometryProcessor = geomProc; in recordDraw()
154 recordDraw( const GrGeometryProcessor* geomProc, const GrSimpleMesh meshes[], int meshCnt, const GrSurfaceProxy* const geomProcProxies[], GrPrimitiveType primitiveType) recordDraw() argument
/third_party/skia/src/gpu/gl/
H A DGrGLProgram.cpp101 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()
151 setRenderTargetState(const GrRenderTarget* rt, GrSurfaceOrigin origin, const GrGeometryProcessor& geomProc) setRenderTargetState() argument
/third_party/skia/src/gpu/glsl/
H A DGrGLSLProgramBuilder.cpp74 const GrGeometryProcessor& geomProc = this->geometryProcessor(); in emitAndInstallPrimProc() local
83 if (geomProc.willUseTessellationShaders()) { in emitAndInstallPrimProc()
91 fFS.codeAppendf("// Stage %d, %s\n", fStageIndex, geomProc.name()); in emitAndInstallPrimProc()
92 fVS.codeAppendf("// Primitive Processor %s\n", geomProc.name()); in emitAndInstallPrimProc()
94 HITRACE_OHOS_NAME_ALWAYS(geomProc.getShaderDfxInfo().c_str()); in emitAndInstallPrimProc()
96 fGPImpl = geomProc.makeProgramImpl(*this->shaderCaps()); in emitAndInstallPrimProc()
98 SkAutoSTArray<4, SamplerHandle> texSamplers(geomProc.numTextureSamplers()); in emitAndInstallPrimProc()
99 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in emitAndInstallPrimProc()
102 const auto& sampler = geomProc.textureSampler(i); in emitAndInstallPrimProc()
103 texSamplers[i] = this->emitSampler(geomProc in emitAndInstallPrimProc()
425 verify(const GrGeometryProcessor& geomProc) verify() argument
[all...]
/third_party/skia/src/gpu/gl/builders/
H A DGrGLProgramBuilder.cpp120 const GrGeometryProcessor& geomProc, in computeCountsAndStrides()
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, fals in finalize()
119 computeCountsAndStrides(GrGLuint programID, const GrGeometryProcessor& geomProc, bool bindAttribLocations) computeCountsAndStrides() argument
[all...]
/third_party/skia/src/gpu/d3d/
H A DGrD3DPipelineStateBuilder.cpp235 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(), inputElement in create_pipeline_state()
589 const GrGeometryProcessor& geomProc = this->geometryProcessor(); finalize() local
[all...]
H A DGrD3DPipelineState.cpp51 fGPImpl->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindConstants()
94 const GrGeometryProcessor& geomProc, in setAndBindTextures()
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()
93 setAndBindTextures(GrD3DGpu* gpu, const GrGeometryProcessor& geomProc, const GrSurfaceProxy* const geomProcTextures[], const GrPipeline& pipeline) setAndBindTextures() argument
/third_party/skia/src/gpu/dawn/
H A DGrDawnProgramBuilder.cpp338 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()
519 setTextures(GrDawnGpu* gpu, const GrGeometryProcessor& geomProc, const GrPipeline& pipeline, const GrSurfaceProxy* const geomProcTextures[]) setTextures() argument
[all...]
/third_party/skia/gm/
H A Dfwidth_squircle.cpp94 const GrGeometryProcessor& geomProc) override { in makeProgramImpl()
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()
H A Dtessellation.cpp70 const GrGeometryProcessor& geomProc) override {
72 geomProc.cast<TessellationTestTriShader>().fViewMatrix);
189 const GrGeometryProcessor& geomProc) override {
191 geomProc.cast<TessellationTestRectShader>().fViewMatrix);
/third_party/skia/src/gpu/vk/
H A DGrVkPipelineState.cpp82 fGPImpl->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindUniforms()
113 const GrGeometryProcessor& geomProc, in setAndBindTextures()
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()
112 setAndBindTextures(GrVkGpu* gpu, const GrGeometryProcessor& geomProc, const GrPipeline& pipeline, const GrSurfaceProxy* const geomProcTextures[], GrVkCommandBuffer* commandBuffer) setAndBindTextures() argument
/third_party/skia/src/gpu/ops/
H A DDrawAtlasPathOp.cpp79 const GrGeometryProcessor& geomProc) override {
80 auto* atlasHelper = geomProc.cast<DrawAtlasPathShader>().fAtlasHelper;
200 fProgram->geomProc().instanceStride(), fInstanceCount, &fInstanceBuffer, in onPrepare()
222 if (fProgram->geomProc().hasVertexAttributes() && !fVertexBufferIfNoIDSupport) { in onExecute()
226 flushState->bindTextures(fProgram->geomProc(), *fAtlasHelper.proxy(), fProgram->pipeline()); in onExecute()
H A DPathStencilCoverOp.cpp263 auto tessShader = &fStencilPathProgram->geomProc().cast<GrPathTessellationShader>(); in onPrepare()
272 size_t instanceStride = fCoverBBoxProgram->geomProc().instanceStride(); in onPrepare()
323 fCoverBBoxProgram->geomProc().hasVertexAttributes() && in onExecute()
340 fTessellator->draw(flushState, fStencilPathProgram->geomProc().willUseTessellationShaders()); in onExecute()
348 flushState->bindTextures(fCoverBBoxProgram->geomProc(), nullptr, in onExecute()
H A DPathTessellateOp.cpp112 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()
H A DPathInnerTriangulateOp.cpp449 auto tessShader = &fStencilCurvesProgram->geomProc().cast<GrPathTessellationShader>(); in onPrepare()
473 fCoverHullsProgram->geomProc().hasVertexAttributes() && in onExecute()
482 fStencilCurvesProgram->geomProc().willUseTessellationShaders()); in onExecute()
492 flushState->bindTextures(fanProgram->geomProc(), nullptr, fanProgram->pipeline()); in onExecute()
501 flushState->bindTextures(fCoverHullsProgram->geomProc(), nullptr, *fPipelineForFills); in onExecute()
/third_party/skia/src/gpu/tessellate/shaders/
H A DGrStrokeTessellationShader_HardwareImpl.cpp317 const GrGeometryProcessor& geomProc, in getTessControlShaderGLSL()
321 const auto& shader = geomProc.cast<GrStrokeTessellationShader>(); in getTessControlShaderGLSL()
525 const GrGeometryProcessor& geomProc, in getTessEvaluationShaderGLSL()
529 const auto& shader = geomProc.cast<GrStrokeTessellationShader>(); in getTessEvaluationShaderGLSL()
316 getTessControlShaderGLSL( const GrGeometryProcessor& geomProc, const char* versionAndExtensionDecls, const GrGLSLUniformHandler& uniformHandler, const GrShaderCaps& shaderCaps) const getTessControlShaderGLSL() argument
524 getTessEvaluationShaderGLSL( const GrGeometryProcessor& geomProc, const char* versionAndExtensionDecls, const GrGLSLUniformHandler& uniformHandler, const GrShaderCaps& shaderCaps) const getTessEvaluationShaderGLSL() argument
H A DGrPathTessellationShader.cpp151 GrShaderCaps&, const GrGeometryProcessor& geomProc) { in setData()
152 const auto& shader = geomProc.cast<GrPathTessellationShader>(); in setData()
150 setData(const GrGLSLProgramDataManager& pdman, const GrShaderCaps&, const GrGeometryProcessor& geomProc) setData() argument
/third_party/skia/tools/gpu/
H A DProxyUtils.cpp101 GrGeometryProcessor* geomProc, in CreateProgramInfo()
121 geomProc, std::move(processors), in CreateProgramInfo()
95 CreateProgramInfo(const GrCaps* caps, SkArenaAlloc* arena, const GrSurfaceProxyView& writeView, bool usesMSAASurface, GrAppliedClip&& appliedClip, const GrDstProxyView& dstProxyView, GrGeometryProcessor* geomProc, SkBlendMode blendMode, GrPrimitiveType primitiveType, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp, GrPipeline::InputFlags flags, const GrUserStencilSettings* stencilSettings) CreateProgramInfo() argument
H A DTestOps.cpp39 const GrGeometryProcessor& geomProc) override {
40 const auto& gp = geomProc.cast<GP>();
218 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
/third_party/skia/src/gpu/effects/
H A DGrBezierEffect.cpp20 const GrGeometryProcessor& geomProc) override {
21 const GrConicEffect& ce = geomProc.cast<GrConicEffect>();
217 const GrGeometryProcessor& geomProc) override {
218 const GrQuadEffect& qe = geomProc.cast<GrQuadEffect>();
H A DGrDistanceFieldGeoProc.cpp27 const GrGeometryProcessor& geomProc) override {
28 const GrDistanceFieldA8TextGeoProc& dfa8gp = geomProc.cast<GrDistanceFieldA8TextGeoProc>();
328 const GrGeometryProcessor& geomProc) override {
329 const GrDistanceFieldPathGeoProc& dfpgp = geomProc.cast<GrDistanceFieldPathGeoProc>();
600 const GrGeometryProcessor& geomProc) override {
603 const GrDistanceFieldLCDTextGeoProc& dflcd = geomProc.cast<GrDistanceFieldLCDTextGeoProc>();
/third_party/skia/bench/
H A DVertexColorSpaceBench.cpp52 const GrGeometryProcessor& geomProc) override {
53 const GP& gp = geomProc.cast<GP>();
203 size_t vertexStride = fProgramInfo->geomProc().vertexStride();
271 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline());

Completed in 17 milliseconds

123