Home
last modified time | relevance | path

Searched refs:fProgramBuilder (Results 1 – 22 of 22) sorted by relevance

/external/skia/src/gpu/glsl/
DGrGLSLFragmentShaderBuilder.cpp88 SkASSERT(CustomFeatures::kSampleLocations & fProgramBuilder->header().processorFeatures()); in sampleOffsets()
95 const GrShaderCaps& shaderCaps = *fProgramBuilder->shaderCaps(); in maskOffMultisampleCoverage()
119 const GrShaderCaps* shaderCaps = fProgramBuilder->shaderCaps(); in dstColor()
142 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableAdvancedBlendEquationIfNeeded()
162 fProgramBuilder->finalizeFragmentOutputColor(fOutputs.back()); in enableCustomOutput()
169 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableSecondaryOutput()
181 fProgramBuilder->finalizeFragmentSecondaryColor(fOutputs.back()); in enableSecondaryOutput()
202 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in getSecondaryColorOutputName()
208 SkASSERT(fProgramBuilder->header().hasSurfaceOriginKey()); in getSurfaceOrigin()
209 return static_cast<GrSurfaceOrigin>(fProgramBuilder->header().fSurfaceOriginKey-1); in getSurfaceOrigin()
[all …]
DGrGLSLVarying.cpp16 SkASSERT(!fProgramBuilder->primitiveProcessor().willUseGeoShader()); in addPassThroughAttribute()
19 fProgramBuilder->fVS.codeAppendf("%s = %s;", v.vsOut(), input.name()); in addPassThroughAttribute()
20 fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn()); in addPassThroughAttribute()
44 bool willUseGeoShader = fProgramBuilder->primitiveProcessor().willUseGeoShader(); in addVarying()
50 v.fIsFlat = use_flat_interpolation(interpolation, *fProgramBuilder->shaderCaps()); in addVarying()
51 fProgramBuilder->nameVariable(&v.fVsOut, 'v', name); in addVarying()
58 fProgramBuilder->nameVariable(&v.fGsOut, 'g', name); in addVarying()
91 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in setNoPerspective()
97 fProgramBuilder->fVS.addFeature(bit, extension); in setNoPerspective()
98 if (fProgramBuilder->primitiveProcessor().willUseGeoShader()) { in setNoPerspective()
[all …]
DGrGLSLShaderBuilder.cpp16 : fProgramBuilder(program) in GrGLSLShaderBuilder()
34 var.appendDecl(fProgramBuilder->shaderCaps(), &tempDecl); in declAppend()
50 fProgramBuilder->nameVariable(outName, '\0', name); in emitFunction()
54 args[i].appendDecl(fProgramBuilder->shaderCaps(), &this->functions()); in emitFunction()
74 const GrShaderVar& sampler = fProgramBuilder->samplerVariable(samplerHandle); in appendTextureLookup()
76 append_texture_swizzle(out, fProgramBuilder->samplerSwizzle(samplerHandle)); in appendTextureLookup()
110 GrGLSLUniformHandler* uniformHandler = fProgramBuilder->uniformHandler(); in appendColorGamutXform()
208 vars[i].appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls()
214 SkASSERT(fProgramBuilder->shaderCaps()->generation() >= k330_GrGLSLGeneration || in addLayoutQualifier()
215 fProgramBuilder->shaderCaps()->mustEnableAdvBlendEqs()); in addLayoutQualifier()
[all …]
DGrGLSLUniformHandler.h72 explicit GrGLSLUniformHandler(GrGLSLProgramBuilder* program) : fProgramBuilder(program) {} in GrGLSLUniformHandler()
75 GrGLSLProgramBuilder* fProgramBuilder; variable
DGrGLSLVertexGeoBuilder.cpp43 fProgramBuilder->varyingHandler()->getVertexDecls(&this->inputs(), &this->outputs()); in onFinalize()
94 fProgramBuilder->varyingHandler()->getGeomDecls(&this->inputs(), &this->outputs()); in onFinalize()
DGrGLSLVarying.h92 , fProgramBuilder(program) in GrGLSLVaryingHandler()
165 GrGLSLProgramBuilder* fProgramBuilder; variable
DGrGLSLShaderBuilder.h135 GrGLSLProgramBuilder* getProgramBuilder() { return fProgramBuilder; } in getProgramBuilder()
230 GrGLSLProgramBuilder* fProgramBuilder; variable
/external/skqp/src/gpu/glsl/
DGrGLSLVarying.cpp16 SkASSERT(!fProgramBuilder->primitiveProcessor().willUseGeoShader()); in addPassThroughAttribute()
19 fProgramBuilder->fVS.codeAppendf("%s = %s;", v.vsOut(), input.name()); in addPassThroughAttribute()
20 fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn()); in addPassThroughAttribute()
44 bool willUseGeoShader = fProgramBuilder->primitiveProcessor().willUseGeoShader(); in addVarying()
50 v.fIsFlat = use_flat_interpolation(interpolation, *fProgramBuilder->shaderCaps()); in addVarying()
51 fProgramBuilder->nameVariable(&v.fVsOut, 'v', name); in addVarying()
58 fProgramBuilder->nameVariable(&v.fGsOut, 'g', name); in addVarying()
91 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in setNoPerspective()
97 fProgramBuilder->fVS.addFeature(bit, extension); in setNoPerspective()
98 if (fProgramBuilder->primitiveProcessor().willUseGeoShader()) { in setNoPerspective()
[all …]
DGrGLSLShaderBuilder.cpp16 : fProgramBuilder(program) in GrGLSLShaderBuilder()
34 var.appendDecl(fProgramBuilder->shaderCaps(), &tempDecl); in declAppend()
49 this->functions().append(GrGLSLTypeString(fProgramBuilder->shaderCaps(), returnType)); in emitFunction()
50 fProgramBuilder->nameVariable(outName, '\0', name); in emitFunction()
54 args[i].appendDecl(fProgramBuilder->shaderCaps(), &this->functions()); in emitFunction()
74 const GrShaderVar& sampler = fProgramBuilder->samplerVariable(samplerHandle); in appendTextureLookup()
76 append_texture_swizzle(out, fProgramBuilder->samplerSwizzle(samplerHandle)); in appendTextureLookup()
110 GrGLSLUniformHandler* uniformHandler = fProgramBuilder->uniformHandler(); in appendColorGamutXform()
208 vars[i].appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls()
214 SkASSERT(fProgramBuilder->shaderCaps()->generation() >= k330_GrGLSLGeneration || in addLayoutQualifier()
[all …]
DGrGLSLFragmentShaderBuilder.cpp98 const GrShaderCaps* shaderCaps = fProgramBuilder->shaderCaps(); in dstColor()
121 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableAdvancedBlendEquationIfNeeded()
141 fProgramBuilder->finalizeFragmentOutputColor(fOutputs.back()); in enableCustomOutput()
148 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableSecondaryOutput()
160 fProgramBuilder->finalizeFragmentSecondaryColor(fOutputs.back()); in enableSecondaryOutput()
181 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in getSecondaryColorOutputName()
187 SkASSERT(fProgramBuilder->header().fSurfaceOriginKey); in getSurfaceOrigin()
188 return static_cast<GrSurfaceOrigin>(fProgramBuilder->header().fSurfaceOriginKey-1); in getSurfaceOrigin()
195 fProgramBuilder->varyingHandler()->getFragDecls(&this->inputs(), &this->outputs()); in onFinalize()
DGrGLSLVertexGeoBuilder.cpp43 fProgramBuilder->varyingHandler()->getVertexDecls(&this->inputs(), &this->outputs()); in onFinalize()
94 fProgramBuilder->varyingHandler()->getGeomDecls(&this->inputs(), &this->outputs()); in onFinalize()
DGrGLSLUniformHandler.h93 explicit GrGLSLUniformHandler(GrGLSLProgramBuilder* program) : fProgramBuilder(program) {} in GrGLSLUniformHandler()
96 GrGLSLProgramBuilder* fProgramBuilder; variable
DGrGLSLVarying.h92 , fProgramBuilder(program) in GrGLSLVaryingHandler()
165 GrGLSLProgramBuilder* fProgramBuilder; variable
DGrGLSLShaderBuilder.h135 GrGLSLProgramBuilder* getProgramBuilder() { return fProgramBuilder; } in getProgramBuilder()
229 GrGLSLProgramBuilder* fProgramBuilder; variable
/external/skia/src/gpu/gl/
DGrGLUniformHandler.cpp51 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray()
70 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); in addSampler()
89 fUniforms[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
95 fSamplers[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
132 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; in glGpu()
DGrGLVaryingHandler.cpp18 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; in addPathProcessingVarying()
/external/skqp/src/gpu/gl/
DGrGLUniformHandler.cpp53 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray()
73 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); in addSampler()
94 fUniforms[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
100 fSamplers[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
137 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; in glGpu()
DGrGLVaryingHandler.cpp18 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; in addPathProcessingVarying()
/external/skqp/src/gpu/vk/
DGrVkUniformHandler.cpp233 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray()
269 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); in addSampler()
290 GrVkGpu* gpu = static_cast<GrVkPipelineStateBuilder*>(fProgramBuilder)->gpu(); in addSampler()
310 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
346 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls()
/external/skia/src/gpu/vk/
DGrVkUniformHandler.cpp231 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray()
266 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); in addSampler()
285 GrVkGpu* gpu = static_cast<GrVkPipelineStateBuilder*>(fProgramBuilder)->gpu(); in addSampler()
305 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
341 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls()
/external/skia/src/gpu/mtl/
DGrMtlUniformHandler.mm227 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName);
265 fProgramBuilder->nameVariable(&mangleName, prefix, name, true);
293 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out);
329 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString);
/external/skqp/src/gpu/mtl/
DGrMtlUniformHandler.mm225 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName);
261 fProgramBuilder->nameVariable(&mangleName, prefix, name, true);
291 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out);
327 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString);