Home
last modified time | relevance | path

Searched refs:fVariable (Results 1 – 25 of 42) sorted by relevance

12

/external/skqp/src/sksl/ir/
DSkSLVariableReference.cpp19 , 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 …]
DSkSLInterfaceBlock.h32 , 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
DSkSLVariableReference.h49 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/
DGrGLUniformHandler.cpp41 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 …]
DGrGLProgramDataManager.cpp27 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()
DGrGLUniformHandler.h22 return fUniforms[u.toIndex()].fVariable; in getUniformVariable()
46 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
/external/skqp/src/gpu/vk/
DGrVkUniformHandler.cpp222 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 …]
DGrVkUniformHandler.h38 GrShaderVar fVariable; member
49 return fUniforms[u.toIndex()].fVariable; in getUniformVariable()
80 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
/external/skia/src/gpu/gl/
DGrGLUniformHandler.cpp60 *outName = uni.fVariable.c_str(); in internalAddUniformArray()
92 uniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
98 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
108 GL_CALL(BindUniformLocation(programID, currUniform, uniform.fVariable.c_str())); in bindUniformLocations()
113 GL_CALL(BindUniformLocation(programID, currUniform, sampler.fVariable.c_str())); in bindUniformLocations()
124 GL_CALL_RET(location, GetUniformLocation(programID, uniform.fVariable.c_str())); in getUniformLocations()
129 GL_CALL_RET(location, GetUniformLocation(programID, sampler.fVariable.c_str())); in getUniformLocations()
DGrGLUniformHandler.h23 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable()
59 return fSamplers.item(handle.toIndex()).fVariable.c_str(); in samplerVariable()
/external/skia/src/gpu/d3d/
DGrD3DPipelineStateDataManager.cpp21 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()
/external/skia/src/gpu/vk/
DGrVkUniformHandler.cpp263 *outName = uni.fVariable.c_str(); in internalAddUniformArray()
310 SkASSERT(fInputUniform.fVariable.getType() == kVoid_GrSLType); in addInputSampler()
329 SkASSERT(sampler.fVariable.getType() == kTexture2DSampler_GrSLType || in appendUniformDecls()
330 sampler.fVariable.getType() == kTextureExternalSampler_GrSLType); in appendUniformDecls()
332 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
336 if (fInputUniform.fVariable.getType() == kInput_GrSLType) { in appendUniformDecls()
339 fInputUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
364 if (GrSLTypeCanBeUniformValue(localUniform.fVariable.getType())) { in appendUniformDecls()
367 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls()
DGrVkPipelineStateDataManager.cpp29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkPipelineStateDataManager()
30 uniformInfo.fVariable.getArrayCount() > 0); in GrVkPipelineStateDataManager()
32 uniform.fArrayCount = uniformInfo.fVariable.getArrayCount(); in GrVkPipelineStateDataManager()
33 uniform.fType = uniformInfo.fVariable.getType(); in GrVkPipelineStateDataManager()
DGrVkUniformHandler.h68 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable()
126 return fSamplers.item(handle.toIndex()).fVariable.c_str(); in samplerVariable()
144 return fInputUniform.fVariable.c_str(); in inputSamplerVariable()
/external/skia/src/gpu/
DGrSPIRVUniformHandler.cpp21 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable()
25 return fUniforms.item(u.toIndex()).fVariable.getName().c_str(); in getUniformCStr()
239 *outName = info.fVariable.c_str(); in internalAddUniformArray()
281 reference.printf("makeSampler2D(%s, %s)", texInfo.fVariable.getName().c_str(), in addSampler()
282 info.fVariable.getName().c_str()); in addSampler()
300 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
302 (*textures).fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
310 uniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls()
/external/skqp/src/gpu/mtl/
DGrMtlUniformHandler.mm214 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 …]
DGrMtlUniformHandler.h31 GrShaderVar fVariable; member
38 return fUniforms[u.toIndex()].fVariable; in getUniformVariable()
69 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
/external/skia/src/sksl/ir/
DSkSLInterfaceBlock.h36 , fVariable(var) in InterfaceBlock()
43 return *fVariable; in variable()
47 fVariable = var; in setVariable()
94 const Variable* fVariable;
DSkSLVariableReference.cpp19 , fVariable(variable) in VariableReference()
47 fVariable = variable; in setVariable()
DSkSLVariableReference.h55 return fVariable; in variable()
76 const Variable* fVariable;
/external/skqp/src/sksl/
DSkSLPipelineStageCodeGenerator.cpp90 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()
DSkSLMetalCodeGenerator.cpp410 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 …]
DSkSLCPPCodeGenerator.cpp88 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 …]
/external/skia/src/gpu/glsl/
DGrGLSLUniformHandler.cpp18 return u.fVariable; in getUniformMapping()
30 return u.fVariable; in liftUniformToVertexShader()
/external/skia/src/gpu/mtl/
DGrMtlPipelineStateDataManager.mm27 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() ||
28 uniformInfo.fVariable.getArrayCount() > 0);
30 uniform.fArrayCount = uniformInfo.fVariable.getArrayCount();
31 uniform.fType = uniformInfo.fVariable.getType();

12