/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLVariableReference.cpp | 19 , fVariable(variable) in VariableReference() 22 fVariable.fWriteCount++; in VariableReference() 25 fVariable.fReadCount++; in VariableReference() 31 fVariable.fWriteCount--; in ~VariableReference() 34 fVariable.fReadCount--; in ~VariableReference() 40 fVariable.fWriteCount--; in setRefKind() 43 fVariable.fReadCount--; in setRefKind() 46 fVariable.fWriteCount++; in setRefKind() 49 fVariable.fReadCount++; in setRefKind() 97 fVariable.fStorage == Variable::kGlobal_Storage && in constantPropagate() [all …]
|
D | SkSLInterfaceBlock.h | 32 , fVariable(*var) in InterfaceBlock() 43 return std::unique_ptr<ProgramElement>(new InterfaceBlock(fOffset, &fVariable, fTypeName, in clone() 50 String result = fVariable.fModifiers.description() + fTypeName + " {\n"; in description() 51 const Type* structType = &fVariable.fType; in description() 72 const Variable& fVariable; member
|
D | SkSLVariableReference.h | 49 return 0 != (fVariable.fModifiers.fFlags & Modifiers::kConst_Flag); in isConstant() 53 return std::unique_ptr<Expression>(new VariableReference(fOffset, fVariable, fRefKind)); in clone() 57 return fVariable.fName; in description() 66 const Variable& fVariable; member
|
/third_party/flutter/skia/src/gpu/gl/ |
D | GrGLUniformHandler.cpp | 39 uni.fVariable.setType(type); in internalAddUniformArray() 40 uni.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); in internalAddUniformArray() 51 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray() 52 uni.fVariable.setArrayCount(arrayCount); in internalAddUniformArray() 57 *outName = uni.fVariable.c_str(); in internalAddUniformArray() 76 sampler.fVariable.setType(GrSLCombinedSamplerTypeForTextureType(type)); in addSampler() 77 sampler.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); in addSampler() 78 sampler.fVariable.setName(mangleName); in addSampler() 91 fUniforms[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 97 fSamplers[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() [all …]
|
D | GrGLProgramDataManager.cpp | 27 SkASSERT(GrShaderVar::kNonArray == builderUniform.fVariable.getArrayCount() || in GrGLProgramDataManager() 28 builderUniform.fVariable.getArrayCount() > 0); in GrGLProgramDataManager() 30 uniform.fArrayCount = builderUniform.fVariable.getArrayCount(); in GrGLProgramDataManager() 31 uniform.fType = builderUniform.fVariable.getType(); in GrGLProgramDataManager() 43 SkASSERT(GrShaderVar::kNonArray == builderPathProcVarying.fVariable.getArrayCount() || in GrGLProgramDataManager() 44 builderPathProcVarying.fVariable.getArrayCount() > 0); in GrGLProgramDataManager() 46 pathProcVarying.fArrayCount = builderPathProcVarying.fVariable.getArrayCount(); in GrGLProgramDataManager() 47 pathProcVarying.fType = builderPathProcVarying.fVariable.getType(); in GrGLProgramDataManager()
|
D | GrGLUniformHandler.h | 22 return fUniforms[u.toIndex()].fVariable; in getUniformVariable() 45 return fSamplers[handle.toIndex()].fVariable.c_str(); in samplerVariable()
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkUniformHandler.cpp | 226 uni.fVariable.setType(type); in internalAddUniformArray() 237 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray() 238 uni.fVariable.setArrayCount(arrayCount); in internalAddUniformArray() 242 uni.fVariable.setTypeModifier(GrShaderVar::kNone_TypeModifier); in internalAddUniformArray() 248 uni.fVariable.addLayoutQualifier(layoutQualifier.c_str()); in internalAddUniformArray() 251 *outName = uni.fVariable.c_str(); in internalAddUniformArray() 270 info.fVariable.setType(GrSLCombinedSamplerTypeForTextureType(type)); in addSampler() 271 info.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); in addSampler() 272 info.fVariable.setName(mangleName); in addSampler() 275 info.fVariable.addLayoutQualifier(layoutQualifier.c_str()); in addSampler() [all …]
|
D | GrVkUniformHandler.h | 37 GrShaderVar fVariable; member 49 return fUniforms[u.toIndex()].fVariable; in getUniformVariable() 84 return fSamplers[handle.toIndex()].fVariable.c_str(); in samplerVariable()
|
/third_party/skia/src/gpu/gl/ |
D | GrGLUniformHandler.cpp | 52 tempInfo.fVariable = GrShaderVar{std::move(resolvedName), in internalAddUniformArray() 65 *outName = fUniforms.back().fVariable.c_str(); in internalAddUniformArray() 81 tempInfo.fVariable = GrShaderVar{std::move(mangleName), in addSampler() 100 uniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 106 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 116 GL_CALL(BindUniformLocation(programID, currUniform, uniform.fVariable.c_str())); in bindUniformLocations() 121 GL_CALL(BindUniformLocation(programID, currUniform, sampler.fVariable.c_str())); in bindUniformLocations() 132 GL_CALL_RET(location, GetUniformLocation(programID, uniform.fVariable.c_str())); in getUniformLocations() 137 GL_CALL_RET(location, GetUniformLocation(programID, sampler.fVariable.c_str())); in getUniformLocations()
|
/third_party/skia/src/gpu/ |
D | GrSPIRVUniformHandler.cpp | 21 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable() 25 return fUniforms.item(u.toIndex()).fVariable.getName().c_str(); in getUniformCStr() 207 tempInfo.fVariable = GrShaderVar{std::move(resolvedName), in internalAddUniformArray() 222 *outName = fUniforms.back().fVariable.c_str(); in internalAddUniformArray() 239 tempInfo.fVariable = GrShaderVar{std::move(mangleName), in addSampler() 258 tempInfo.fVariable = GrShaderVar{std::move(mangleTexName), in addSampler() 268 fTextures.back().fVariable.getName().c_str(), in addSampler() 269 fSamplers.back().fVariable.getName().c_str()); in addSampler() 287 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 289 (*textures).fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() [all …]
|
/third_party/skia/src/gpu/vk/ |
D | GrVkUniformHandler.cpp | 223 tempInfo.fVariable = GrShaderVar{std::move(resolvedName), in internalAddUniformArray() 242 *outName = fUniforms.back().fVariable.c_str(); in internalAddUniformArray() 260 tempInfo.fVariable = in addSampler() 296 SkASSERT(fInputUniform.fVariable.getType() == kVoid_GrSLType); in addInputSampler() 315 SkASSERT(sampler.fVariable.getType() == kTexture2DSampler_GrSLType || in appendUniformDecls() 316 sampler.fVariable.getType() == kTextureExternalSampler_GrSLType); in appendUniformDecls() 318 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 322 if (fInputUniform.fVariable.getType() == kInput_GrSLType) { in appendUniformDecls() 325 fInputUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 350 if (GrSLTypeCanBeUniformValue(localUniform.fVariable.getType())) { in appendUniformDecls() [all …]
|
D | GrVkPipelineStateDataManager.cpp | 29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkPipelineStateDataManager() 30 uniformInfo.fVariable.getArrayCount() > 0); in GrVkPipelineStateDataManager() 32 uniform.fArrayCount = uniformInfo.fVariable.getArrayCount(); in GrVkPipelineStateDataManager() 36 uniform.fType = uniformInfo.fVariable.getType(); in GrVkPipelineStateDataManager()
|
D | GrVkUniformHandler.h | 68 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable() 123 return fSamplers.item(handle.toIndex()).fVariable.c_str(); in samplerVariable() 141 return fInputUniform.fVariable.c_str(); in inputSamplerVariable()
|
/third_party/skia/src/gpu/d3d/ |
D | GrD3DPipelineStateDataManager.cpp | 21 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrD3DPipelineStateDataManager() 22 uniformInfo.fVariable.getArrayCount() > 0); in GrD3DPipelineStateDataManager() 24 uniform.fArrayCount = uniformInfo.fVariable.getArrayCount(); in GrD3DPipelineStateDataManager() 25 uniform.fType = uniformInfo.fVariable.getType(); in GrD3DPipelineStateDataManager()
|
/third_party/flutter/skia/src/gpu/mtl/ |
D | GrMtlUniformHandler.mm | 213 uni.fVariable.setType(type); 224 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); 225 uni.fVariable.setArrayCount(arrayCount); 229 uni.fVariable.setTypeModifier(GrShaderVar::kNone_TypeModifier); 236 uni.fVariable.addLayoutQualifier(layoutQualifier.c_str()); 239 *outName = uni.fVariable.c_str(); 258 info.fVariable.setType(GrSLCombinedSamplerTypeForTextureType(type)); 259 info.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); 260 info.fVariable.setName(mangleName); 263 info.fVariable.addLayoutQualifier(layoutQualifier.c_str()); [all …]
|
D | GrMtlUniformHandler.h | 30 GrShaderVar fVariable; member 37 return fUniforms[u.toIndex()].fVariable; in getUniformVariable() 68 return fSamplers[handle.toIndex()].fVariable.c_str(); in samplerVariable()
|
/third_party/skia/src/sksl/ir/ |
D | SkSLInterfaceBlock.h | 38 , fVariable(var) in InterfaceBlock() 45 return fVariable; in variable() 90 const Variable& fVariable;
|
D | SkSLVariableReference.cpp | 19 , fVariable(variable) in VariableReference() 47 fVariable = variable; in setVariable()
|
D | SkSLVariableReference.h | 55 return fVariable; in variable() 76 const Variable* fVariable;
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLCPPCodeGenerator.cpp | 86 var = &((VariableReference&) *b.fLeft).fVariable; in writeBinaryExpression() 89 var = &((VariableReference&) *b.fRight).fVariable; in writeBinaryExpression() 115 int builtin = ((VariableReference&) base).fVariable.fModifiers.fLayout.fBuiltin; in writeIndexExpression() 286 this->write(ref.fVariable.fName); in writeVariableReference() 289 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 307 if (ref.fVariable.fType.kind() == Type::kSampler_Kind) { in writeVariableReference() 310 this->getSamplerHandle(ref.fVariable) + ")"); in writeVariableReference() 313 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 315 String name = ref.fVariable.fName; in writeVariableReference() 319 if (ref.fVariable.fModifiers.fLayout.fWhen.fLength) { in writeVariableReference() [all …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 94 if (decl.fVar == &((VariableReference&) *c.fArguments[0]).fVariable) { in writeFunctionCall() 121 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 139 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 151 if (&var == &ref.fVariable) { in writeVariableReference() 165 this->write(ref.fVariable.fName); in writeVariableReference()
|
D | SkSLMetalCodeGenerator.cpp | 516 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 535 if (Variable::kGlobal_Storage == ref.fVariable.fStorage) { in writeVariableReference() 536 if (ref.fVariable.fModifiers.fFlags & Modifiers::kIn_Flag) { in writeVariableReference() 538 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kOut_Flag) { in writeVariableReference() 540 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag && in writeVariableReference() 541 ref.fVariable.fType.kind() != Type::kSampler_Kind) { in writeVariableReference() 547 this->writeName(ref.fVariable.fName); in writeVariableReference() 683 Variable::kParameter_Storage == ((VariableReference&) *b.fLeft).fVariable.fStorage && in writeBinaryExpression() 684 (((VariableReference&) *b.fLeft).fVariable.fModifiers.fFlags & Modifiers::kOut_Flag)) { in writeBinaryExpression() 832 this->writeType(intf.fVariable.fType); in writeFunction() [all …]
|
/third_party/skia/src/gpu/glsl/ |
D | GrGLSLUniformHandler.cpp | 18 return u.fVariable; in getUniformMapping() 30 return u.fVariable; in liftUniformToVertexShader()
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlUniformHandler.mm | 210 tempInfo.fVariable = GrShaderVar{std::move(resolvedName), 225 *outName = fUniforms.back().fVariable.c_str(); 247 tempInfo.fVariable = GrShaderVar{std::move(mangleName), 268 SkASSERT(sampler.fVariable.getType() == kTexture2DSampler_GrSLType); 270 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); 290 if (GrSLTypeCanBeUniformValue(localUniform.fVariable.getType())) { 291 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString);
|
D | GrMtlPipelineStateDataManager.mm | 28 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || 29 uniformInfo.fVariable.getArrayCount() > 0); 31 uniform.fArrayCount = uniformInfo.fVariable.getArrayCount(); 34 uniform.fType = uniformInfo.fVariable.getType();
|