Home
last modified time | relevance | path

Searched refs:GrShaderVar (Results 1 – 15 of 15) sorted by relevance

/external/skia/src/gpu/glsl/
DGrGLSLVarying.cpp73 this->addAttribute(GrShaderVar(attr.fName, in emitAttributes()
75 GrShaderVar::kAttribute_TypeModifier, in emitAttributes()
76 GrShaderVar::kNonArray, in emitAttributes()
81 void GrGLSLVaryingHandler::addAttribute(const GrShaderVar& var) { in addAttribute()
82 SkASSERT(GrShaderVar::kAttribute_TypeModifier == var.getTypeModifier()); in addAttribute()
114 fVertexOutputs.push_back().set(v.fType, GrShaderVar::kVaryingOut_TypeModifier, v.fVsOut, in finalize()
117 fGeomInputs.push_back().set(v.fType, GrShaderVar::kVaryingIn_TypeModifier, v.fVsOut, in finalize()
118 GrShaderVar::kUnsizedArray, v.fPrecision, nullptr, in finalize()
129 fFragInputs.push_back().set(v.fType, GrShaderVar::kVaryingIn_TypeModifier, fsIn, in finalize()
DGrGLSLShaderVar.h20 class GrGLSLShaderVar : public GrShaderVar {
26 : GrShaderVar() in GrGLSLShaderVar()
32 : GrShaderVar(name, type, arrayCount, precision) in GrShaderVar() function
40 : GrShaderVar(name, type, typeModifier, arrayCount, precision) in GrShaderVar() function
45 GrGLSLShaderVar(const GrShaderVar& var) in GrGLSLShaderVar()
46 : GrShaderVar(var) in GrGLSLShaderVar()
52 : GrShaderVar(var.c_str(), var.getType(), var.getTypeModifier(), in GrGLSLShaderVar()
263 typedef GrShaderVar INHERITED;
DGrGLSLProcessorTypes.h17 typedef GrShaderVar GrGLSLTransformedCoords;
18 typedef SkTArray<GrShaderVar> GrGLSLTransformedCoordsArray;
DGrGLSLGeometryProcessor.h48 const GrShaderVar& posVar, in emitTransforms()
60 const GrShaderVar& posVar,
76 GrShaderVar fPositionVar;
DGrGLSLVertexShaderBuilder.h23 void transformToNormalizedDeviceSpace(const GrShaderVar& posVar);
DGrGLSLFragmentShaderBuilder.cpp206 fOutputs.push_back().set(kInt_GrSLType, GrShaderVar::kOut_TypeModifier, in overrideSampleCoverage()
231 fOutputs[fCustomColorOutputIndex].setTypeModifier(GrShaderVar::kInOut_TypeModifier); in dstColor()
DGrGLSLVertexShaderBuilder.cpp18 void GrGLSLVertexBuilder::transformToNormalizedDeviceSpace(const GrShaderVar& posVar) { in transformToNormalizedDeviceSpace()
DGrGLSLVarying.h174 void addAttribute(const GrShaderVar& var);
DGrGLSLGeometryProcessor.cpp30 const GrShaderVar& posVar, in emitTransforms()
/external/skia/include/gpu/
DGrShaderVar.h14 class GrShaderVar {
40 GrShaderVar() in GrShaderVar() function
47 GrShaderVar(const SkString& name, GrSLType type, int arrayCount = kNonArray,
58 GrShaderVar(const char* name, GrSLType type, int arrayCount = kNonArray,
69 GrShaderVar(const char* name, GrSLType type, TypeModifier typeModifier,
/external/skia/bench/
DGLVec4ScalarBench.cpp104 GrGLSLShaderVar aPosition("a_position", kVec2f_GrSLType, GrShaderVar::kAttribute_TypeModifier); in setupShader()
105 GrGLSLShaderVar oPosition("o_position", kVec2f_GrSLType, GrShaderVar::kVaryingOut_TypeModifier); in setupShader()
106 GrGLSLShaderVar aColor("a_color", kVec3f_GrSLType, GrShaderVar::kAttribute_TypeModifier); in setupShader()
107 GrGLSLShaderVar oColor("o_color", kVec3f_GrSLType, GrShaderVar::kVaryingOut_TypeModifier); in setupShader()
134 GrGLSLShaderVar oFragColor("o_FragColor", kVec4f_GrSLType, GrShaderVar::kOut_TypeModifier); in setupShader()
137 oPosition.setTypeModifier(GrShaderVar::kVaryingIn_TypeModifier); in setupShader()
140 oColor.setTypeModifier(GrShaderVar::kVaryingIn_TypeModifier); in setupShader()
DGLVertexAttributesBench.cpp72 GrGLSLShaderVar aPosition("a_position", kVec4f_GrSLType, GrShaderVar::kAttribute_TypeModifier); in setupShader()
85 GrShaderVar::kAttribute_TypeModifier)); in setupShader()
96 GrShaderVar::kVaryingOut_TypeModifier)); in setupShader()
120 GrGLSLShaderVar oFragColor("o_FragColor", kVec4f_GrSLType, GrShaderVar::kOut_TypeModifier); in setupShader()
134 oVars[i].setTypeModifier(GrShaderVar::kVaryingIn_TypeModifier); in setupShader()
DGLInstancedArraysBench.cpp114 GrGLSLShaderVar aPosition("a_position", kVec2f_GrSLType, GrShaderVar::kAttribute_TypeModifier); in setupShader()
115 GrGLSLShaderVar aColor("a_color", kVec3f_GrSLType, GrShaderVar::kAttribute_TypeModifier); in setupShader()
116 GrGLSLShaderVar oColor("o_color", kVec3f_GrSLType, GrShaderVar::kVaryingOut_TypeModifier); in setupShader()
136 GrGLSLShaderVar oFragColor("o_FragColor", kVec4f_GrSLType, GrShaderVar::kOut_TypeModifier); in setupShader()
139 oColor.setTypeModifier(GrShaderVar::kVaryingIn_TypeModifier); in setupShader()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp291 GrGLSLShaderVar aVertex("a_vertex", kVec2f_GrSLType, GrShaderVar::kAttribute_TypeModifier); in createPLSSetupProgram()
293 GrShaderVar::kUniform_TypeModifier); in createPLSSetupProgram()
294 GrGLSLShaderVar uPosXform("u_posXform", kVec4f_GrSLType, GrShaderVar::kUniform_TypeModifier); in createPLSSetupProgram()
295 GrGLSLShaderVar uTexture("u_texture", kSampler2D_GrSLType, GrShaderVar::kUniform_TypeModifier); in createPLSSetupProgram()
296 GrGLSLShaderVar vTexCoord("v_texCoord", kVec2f_GrSLType, GrShaderVar::kVaryingOut_TypeModifier); in createPLSSetupProgram()
333 vTexCoord.setTypeModifier(GrShaderVar::kVaryingIn_TypeModifier); in createPLSSetupProgram()
3384 GrGLSLShaderVar aVertex("a_vertex", kVec2f_GrSLType, GrShaderVar::kAttribute_TypeModifier); in createCopyPrograms()
3386 GrShaderVar::kUniform_TypeModifier); in createCopyPrograms()
3388 GrShaderVar::kUniform_TypeModifier); in createCopyPrograms()
3390 GrShaderVar::kUniform_TypeModifier); in createCopyPrograms()
[all …]
/external/skia/gyp/
Dgpu.gypi34 '<(skia_include_path)/gpu/GrShaderVar.h',