/external/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
|
/external/skqp/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
|
/external/skqp/src/gpu/gl/ |
D | GrGLUniformHandler.cpp | 41 uni.fVariable.setType(type); in internalAddUniformArray() 42 uni.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); in internalAddUniformArray() 53 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray() 54 uni.fVariable.setArrayCount(arrayCount); in internalAddUniformArray() 56 uni.fVariable.setPrecision(precision); in internalAddUniformArray() 60 *outName = uni.fVariable.c_str(); in internalAddUniformArray() 80 sampler.fVariable.setType(GrSLCombinedSamplerTypeForTextureType(type)); in addSampler() 81 sampler.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); in addSampler() 82 sampler.fVariable.setPrecision(precision); in addSampler() 83 sampler.fVariable.setName(mangleName); in addSampler() [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() 46 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
|
/external/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() 89 fUniforms[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls() 95 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()
|
/external/skqp/src/gpu/vk/ |
D | GrVkUniformHandler.cpp | 222 uni.fVariable.setType(type); in internalAddUniformArray() 233 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray() 234 uni.fVariable.setArrayCount(arrayCount); in internalAddUniformArray() 236 uni.fVariable.setPrecision(precision); in internalAddUniformArray() 239 uni.fVariable.setTypeModifier(GrShaderVar::kNone_TypeModifier); in internalAddUniformArray() 253 uni.fVariable.addLayoutQualifier(layoutQualifier.c_str()); in internalAddUniformArray() 256 *outName = uni.fVariable.c_str(); in internalAddUniformArray() 276 info.fVariable.setType(GrSLCombinedSamplerTypeForTextureType(type)); in addSampler() 277 info.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); in addSampler() 278 info.fVariable.setPrecision(precision); in addSampler() [all …]
|
D | GrVkUniformHandler.h | 38 GrShaderVar fVariable; member 49 return fUniforms[u.toIndex()].fVariable; in getUniformVariable() 80 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
|
/external/skia/src/gpu/vk/ |
D | GrVkUniformHandler.cpp | 220 uni.fVariable.setType(type); in internalAddUniformArray() 231 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray() 232 uni.fVariable.setArrayCount(arrayCount); in internalAddUniformArray() 236 uni.fVariable.setTypeModifier(GrShaderVar::kNone_TypeModifier); in internalAddUniformArray() 250 uni.fVariable.addLayoutQualifier(layoutQualifier.c_str()); in internalAddUniformArray() 253 *outName = uni.fVariable.c_str(); in internalAddUniformArray() 272 info.fVariable.setType(GrSLCombinedSamplerTypeForTextureType(type)); in addSampler() 273 info.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); in addSampler() 274 info.fVariable.setName(mangleName); in addSampler() 277 info.fVariable.addLayoutQualifier(layoutQualifier.c_str()); in addSampler() [all …]
|
D | GrVkUniformHandler.h | 38 GrShaderVar fVariable; member 49 return fUniforms[u.toIndex()].fVariable; in getUniformVariable() 79 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlUniformHandler.mm | 214 uni.fVariable.setType(type); 225 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); 226 uni.fVariable.setArrayCount(arrayCount); 228 uni.fVariable.setPrecision(precision); 231 uni.fVariable.setTypeModifier(GrShaderVar::kNone_TypeModifier); 245 uni.fVariable.addLayoutQualifier(layoutQualifier.c_str()); 248 *outName = uni.fVariable.c_str(); 268 info.fVariable.setType(GrSLCombinedSamplerTypeForTextureType(type)); 269 info.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); 270 info.fVariable.setPrecision(precision); [all …]
|
D | GrMtlUniformHandler.h | 31 GrShaderVar fVariable; member 38 return fUniforms[u.toIndex()].fVariable; in getUniformVariable() 69 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
|
/external/skia/src/gpu/mtl/ |
D | GrMtlUniformHandler.mm | 216 uni.fVariable.setType(type); 227 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); 228 uni.fVariable.setArrayCount(arrayCount); 232 uni.fVariable.setTypeModifier(GrShaderVar::kNone_TypeModifier); 249 uni.fVariable.addLayoutQualifier(layoutQualifier.c_str()); 252 *outName = uni.fVariable.c_str(); 271 info.fVariable.setType(GrSLCombinedSamplerTypeForTextureType(type)); 272 info.fVariable.setTypeModifier(GrShaderVar::kUniform_TypeModifier); 273 info.fVariable.setName(mangleName); 276 info.fVariable.addLayoutQualifier(layoutQualifier.c_str()); [all …]
|
D | GrMtlUniformHandler.h | 31 GrShaderVar fVariable; member 38 return fUniforms[u.toIndex()].fVariable; in getUniformVariable() 70 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
|
/external/skia/src/sksl/ |
D | SkSLCPPCodeGenerator.cpp | 85 var = &((VariableReference&) *b.fLeft).fVariable; in writeBinaryExpression() 88 var = &((VariableReference&) *b.fRight).fVariable; in writeBinaryExpression() 114 int builtin = ((VariableReference&) base).fVariable.fModifiers.fLayout.fBuiltin; in writeIndexExpression() 279 this->write(ref.fVariable.fName); in writeVariableReference() 282 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 300 if (ref.fVariable.fType.kind() == Type::kSampler_Kind) { in writeVariableReference() 303 this->getSamplerHandle(ref.fVariable) + ").c_str()"); in writeVariableReference() 306 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 308 String name = ref.fVariable.fName; in writeVariableReference() 312 if (ref.fVariable.fModifiers.fLayout.fWhen.size()) { in writeVariableReference() [all …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 91 if (decl.fVar == &((VariableReference&) *c.fArguments[0]).fVariable) { in writeFunctionCall() 118 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 134 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 146 if (&var == &ref.fVariable) { in writeVariableReference() 162 this->write(ref.fVariable.fName); in writeVariableReference()
|
D | SkSLMetalCodeGenerator.cpp | 510 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 529 if (Variable::kGlobal_Storage == ref.fVariable.fStorage) { in writeVariableReference() 530 if (ref.fVariable.fModifiers.fFlags & Modifiers::kIn_Flag) { in writeVariableReference() 532 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kOut_Flag) { in writeVariableReference() 534 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag && in writeVariableReference() 535 ref.fVariable.fType.kind() != Type::kSampler_Kind) { in writeVariableReference() 541 this->writeName(ref.fVariable.fName); in writeVariableReference() 677 Variable::kParameter_Storage == ((VariableReference&) *b.fLeft).fVariable.fStorage && in writeBinaryExpression() 678 (((VariableReference&) *b.fLeft).fVariable.fModifiers.fFlags & Modifiers::kOut_Flag)) { in writeBinaryExpression() 825 this->writeType(intf.fVariable.fType); in writeFunction() [all …]
|
/external/skqp/src/sksl/ |
D | SkSLPipelineStageCodeGenerator.cpp | 90 if (decl.fVar == &((VariableReference&) *c.fArguments[0]).fVariable) { in writeFunctionCall() 117 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 133 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 145 if (&var == &ref.fVariable) { in writeVariableReference() 161 this->write(ref.fVariable.fName); in writeVariableReference()
|
D | SkSLMetalCodeGenerator.cpp | 410 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 429 if (Variable::kGlobal_Storage == ref.fVariable.fStorage) { in writeVariableReference() 430 if (ref.fVariable.fModifiers.fFlags & Modifiers::kIn_Flag) { in writeVariableReference() 432 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kOut_Flag) { in writeVariableReference() 434 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag && in writeVariableReference() 435 ref.fVariable.fType.kind() != Type::kSampler_Kind) { in writeVariableReference() 441 this->writeName(ref.fVariable.fName); in writeVariableReference() 535 Variable::kParameter_Storage == ((VariableReference&) *b.fLeft).fVariable.fStorage && in writeBinaryExpression() 536 (((VariableReference&) *b.fLeft).fVariable.fModifiers.fFlags & Modifiers::kOut_Flag)) { in writeBinaryExpression() 679 this->writeType(intf.fVariable.fType); in writeFunction() [all …]
|
D | SkSLCPPCodeGenerator.cpp | 88 int builtin = ((VariableReference&) base).fVariable.fModifiers.fLayout.fBuiltin; in writeIndexExpression() 253 this->write(ref.fVariable.fName); in writeVariableReference() 256 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference() 274 if (ref.fVariable.fType.kind() == Type::kSampler_Kind) { in writeVariableReference() 277 this->getSamplerHandle(ref.fVariable) + ").c_str()"); in writeVariableReference() 280 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 282 String name = ref.fVariable.fName; in writeVariableReference() 286 if (ref.fVariable.fModifiers.fLayout.fWhen.size()) { in writeVariableReference() 290 default_value(ref.fVariable.fType).c_str()); in writeVariableReference() 295 } else if (SectionAndParameterHelper::IsParameter(ref.fVariable)) { in writeVariableReference() [all …]
|