/third_party/flutter/skia/src/gpu/glsl/ |
D | GrGLSLVarying.cpp | 16 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() 43 bool willUseGeoShader = fProgramBuilder->primitiveProcessor().willUseGeoShader(); in addVarying() 49 v.fIsFlat = use_flat_interpolation(interpolation, *fProgramBuilder->shaderCaps()); in addVarying() 50 fProgramBuilder->nameVariable(&v.fVsOut, 'v', name); in addVarying() 57 fProgramBuilder->nameVariable(&v.fGsOut, 'g', name); in addVarying() 90 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in setNoPerspective() 96 fProgramBuilder->fVS.addFeature(bit, extension); in setNoPerspective() 97 if (fProgramBuilder->primitiveProcessor().willUseGeoShader()) { in setNoPerspective() [all …]
|
D | GrGLSLFragmentShaderBuilder.cpp | 88 SkASSERT(CustomFeatures::kSampleLocations & fProgramBuilder->header().processorFeatures()); in sampleOffsets() 96 const GrShaderCaps& shaderCaps = *fProgramBuilder->shaderCaps(); in maskOffMultisampleCoverage() 121 SkASSERT(CustomFeatures::kSampleLocations & fProgramBuilder->header().processorFeatures()); in applyFnToMultisampleMask() 125 int sampleCnt = fProgramBuilder->effectiveSampleCnt(); in applyFnToMultisampleMask() 131 SkASSERT(fProgramBuilder->shaderCaps()->shaderDerivativeSupport()); in applyFnToMultisampleMask() 182 const GrShaderCaps* shaderCaps = fProgramBuilder->shaderCaps(); in dstColor() 205 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableAdvancedBlendEquationIfNeeded() 225 fProgramBuilder->finalizeFragmentOutputColor(fOutputs.back()); in enableCustomOutput() 232 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableSecondaryOutput() 244 fProgramBuilder->finalizeFragmentSecondaryColor(fOutputs.back()); in enableSecondaryOutput() [all …]
|
D | GrGLSLShaderBuilder.cpp | 17 : fProgramBuilder(program) in GrGLSLShaderBuilder() 33 var.appendDecl(fProgramBuilder->shaderCaps(), &tempDecl); in declAppend() 49 fProgramBuilder->nameVariable(outName, '\0', name); in emitFunction() 53 args[i].appendDecl(fProgramBuilder->shaderCaps(), &this->functions()); in emitFunction() 73 const char* sampler = fProgramBuilder->samplerVariable(samplerHandle); in appendTextureLookup() 75 append_texture_swizzle(out, fProgramBuilder->samplerSwizzle(samplerHandle)); in appendTextureLookup() 109 GrGLSLUniformHandler* uniformHandler = fProgramBuilder->uniformHandler(); in appendColorGamutXform() 207 vars[i].appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls() 213 SkASSERT(fProgramBuilder->shaderCaps()->generation() >= k330_GrGLSLGeneration || in addLayoutQualifier() 214 fProgramBuilder->shaderCaps()->mustEnableAdvBlendEqs()); in addLayoutQualifier() [all …]
|
D | GrGLSLUniformHandler.h | 72 explicit GrGLSLUniformHandler(GrGLSLProgramBuilder* program) : fProgramBuilder(program) {} in GrGLSLUniformHandler() 75 GrGLSLProgramBuilder* fProgramBuilder; variable
|
D | GrGLSLVertexGeoBuilder.cpp | 43 fProgramBuilder->varyingHandler()->getVertexDecls(&this->inputs(), &this->outputs()); in onFinalize() 92 fProgramBuilder->varyingHandler()->getGeomDecls(&this->inputs(), &this->outputs()); in onFinalize()
|
D | GrGLSLVarying.h | 92 , fProgramBuilder(program) in GrGLSLVaryingHandler() 165 GrGLSLProgramBuilder* fProgramBuilder; variable
|
D | GrGLSLShaderBuilder.h | 136 GrGLSLProgramBuilder* getProgramBuilder() { return fProgramBuilder; } in getProgramBuilder() 234 GrGLSLProgramBuilder* fProgramBuilder; variable
|
/third_party/skia/src/gpu/glsl/ |
D | GrGLSLFragmentShaderBuilder.cpp | 21 const GrShaderCaps* shaderCaps = fProgramBuilder->shaderCaps(); in dstColor() 44 if (fProgramBuilder->shaderCaps()->mustEnableAdvBlendEqs()) { in enableAdvancedBlendEquationIfNeeded() 55 fProgramBuilder->finalizeFragmentOutputColor(fOutputs.back()); in enableCustomOutput() 62 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableSecondaryOutput() 74 fProgramBuilder->finalizeFragmentSecondaryColor(fOutputs.back()); in enableSecondaryOutput() 89 return (fProgramBuilder->shaderCaps()->mustDeclareFragmentShaderOutput()) in getSecondaryColorOutputName() 97 return fProgramBuilder->origin(); in getSurfaceOrigin() 101 fProgramBuilder->varyingHandler()->getFragDecls(&this->inputs(), &this->outputs()); in onFinalize()
|
D | GrGLSLVarying.cpp | 18 fProgramBuilder->fVS.codeAppendf("%s = %s;", v.vsOut(), vsVar.c_str()); in addPassThroughAttribute() 19 fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn()); in addPassThroughAttribute() 47 v.fIsFlat = use_flat_interpolation(interpolation, *fProgramBuilder->shaderCaps()); in addVarying() 48 v.fVsOut = fProgramBuilder->nameVariable('v', name); in addVarying() 81 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in setNoPerspective() 87 fProgramBuilder->fVS.addFeature(bit, extension); in setNoPerspective() 88 fProgramBuilder->fFS.addFeature(bit, extension); in setNoPerspective() 111 varying.appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls() 123 SkASSERT(k110_GrGLSLGeneration != fProgramBuilder->shaderCaps()->generation() || in getFragDecls()
|
D | GrGLSLShaderBuilder.cpp | 21 : fProgramBuilder(program) in GrGLSLShaderBuilder() 38 var.appendDecl(fProgramBuilder->shaderCaps(), &tempDecl); in declAppend() 48 return fProgramBuilder->nameVariable(/*prefix=*/'\0', baseName); in getMangledFunctionName() 59 args[i].appendDecl(fProgramBuilder->shaderCaps(), &this->functions()); in appendFunctionDecl() 110 const char* sampler = fProgramBuilder->samplerVariable(samplerHandle); in appendTextureLookup() 112 append_texture_swizzle(out, fProgramBuilder->samplerSwizzle(samplerHandle)); in appendTextureLookup() 150 const char* input = fProgramBuilder->inputSamplerVariable(samplerHandle); in appendInputLoad() 153 append_texture_swizzle(&load, fProgramBuilder->inputSamplerSwizzle(samplerHandle)); in appendInputLoad() 165 GrGLSLUniformHandler* uniformHandler = fProgramBuilder->uniformHandler(); in appendColorGamutXform() 241 bool useFloat = fProgramBuilder->shaderCaps()->colorSpaceMathNeedsFloat(); in appendColorGamutXform() [all …]
|
D | GrGLSLUniformHandler.h | 95 explicit GrGLSLUniformHandler(GrGLSLProgramBuilder* program) : fProgramBuilder(program) {} in GrGLSLUniformHandler() 98 GrGLSLProgramBuilder* fProgramBuilder; variable
|
D | GrGLSLVarying.h | 96 , fProgramBuilder(program) in GrGLSLVaryingHandler() 163 GrGLSLProgramBuilder* fProgramBuilder; variable
|
D | GrGLSLVertexGeoBuilder.cpp | 40 fProgramBuilder->varyingHandler()->getVertexDecls(&this->inputs(), &this->outputs()); in onFinalize()
|
D | GrGLSLShaderBuilder.h | 162 GrGLSLProgramBuilder* getProgramBuilder() { return fProgramBuilder; } in getProgramBuilder() 264 GrGLSLProgramBuilder* fProgramBuilder; variable
|
/third_party/skia/src/gpu/vk/ |
D | GrVkUniformHandler.cpp | 220 SkString resolvedName = fProgramBuilder->nameVariable(prefix, name, mangleName); in internalAddUniformArray() 254 SkString mangleName = fProgramBuilder->nameVariable(prefix, name, /*mangle=*/true); in addSampler() 279 GrVkGpu* gpu = static_cast<GrVkPipelineStateBuilder*>(fProgramBuilder)->gpu(); in addSampler() 299 SkString mangleName = fProgramBuilder->nameVariable(prefix, name, /*mangle=*/true); in addInputSampler() 318 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 325 fInputUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 353 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls() 384 … fCurrentOffsets[kStd430Layout] + kPad <= fProgramBuilder->caps()->maxPushConstantsSize(); in determineIfUsePushConstants()
|
/third_party/flutter/skia/src/gpu/gl/ |
D | GrGLUniformHandler.cpp | 51 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray() 71 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); in addSampler() 91 fUniforms[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 97 fSamplers[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 134 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; in glGpu()
|
D | GrGLVaryingHandler.cpp | 18 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; in addPathProcessingVarying()
|
/third_party/skia/src/gpu/gl/ |
D | GrGLUniformHandler.cpp | 49 SkString resolvedName = fProgramBuilder->nameVariable(prefix, name, mangleName); in internalAddUniformArray() 76 SkString mangleName = fProgramBuilder->nameVariable(prefix, name, true); in addSampler() 100 uniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 106 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 144 GrGLProgramBuilder* glPB = (GrGLProgramBuilder*) fProgramBuilder; in glGpu()
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkUniformHandler.cpp | 206 GrVkGpu* gpu = static_cast<GrVkPipelineStateBuilder*>(fProgramBuilder)->gpu(); in ~GrVkUniformHandler() 237 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray() 265 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); in addSampler() 282 GrVkGpu* gpu = static_cast<GrVkPipelineStateBuilder*>(fProgramBuilder)->gpu(); in addSampler() 299 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 322 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls()
|
/third_party/skia/src/gpu/ |
D | GrSPIRVUniformHandler.cpp | 200 SkString resolvedName = fProgramBuilder->nameVariable(prefix, name, mangleName); in internalAddUniformArray() 234 SkString mangleName = fProgramBuilder->nameVariable('s', name, /*mangle=*/true); in addSampler() 255 SkString mangleTexName = fProgramBuilder->nameVariable('t', name, /*mangle=*/true); in addSampler() 287 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 289 (*textures).fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 297 uniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls()
|
/third_party/flutter/skia/src/gpu/dawn/ |
D | GrDawnUniformHandler.cpp | 223 fProgramBuilder->nameVariable(var.accessName(), prefix, name, mangleName); in internalAddUniformArray() 243 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); in addSampler() 261 fProgramBuilder->nameVariable(&mangleTexName, texPrefix, name, true); in addSampler() 291 fSamplers[i].fVar.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 293 fTextures[i].fVar.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 300 fUniforms[i].fVar.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls()
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlUniformHandler.mm | 200 SkString resolvedName = fProgramBuilder->nameVariable(prefix, name, mangleName); 239 SkString mangleName = fProgramBuilder->nameVariable(prefix, name, /*mangle=*/true); 270 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); 291 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString);
|
/third_party/flutter/skia/src/gpu/mtl/ |
D | GrMtlUniformHandler.mm | 224 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); 253 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); 277 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); 300 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString);
|