Home
last modified time | relevance | path

Searched refs:GrGLSLShaderVar (Results 1 – 25 of 37) sorted by relevance

12

/external/skia/src/gpu/glsl/
DGrGLSLBlend.cpp125 GrGLSLShaderVar getLumArgs[] = { in add_lum_function()
126 GrGLSLShaderVar("color", kVec3f_GrSLType), in add_lum_function()
136 GrGLSLShaderVar setLumArgs[] = { in add_lum_function()
137 GrGLSLShaderVar("hueSat", kVec3f_GrSLType), in add_lum_function()
138 GrGLSLShaderVar("alpha", kFloat_GrSLType), in add_lum_function()
139 GrGLSLShaderVar("lumColor", kVec3f_GrSLType), in add_lum_function()
170 GrGLSLShaderVar getSatArgs[] = { GrGLSLShaderVar("color", kVec3f_GrSLType) }; in add_sat_function()
185 GrGLSLShaderVar helperArgs[] = { in add_sat_function()
186 GrGLSLShaderVar("minComp", kFloat_GrSLType), in add_sat_function()
187 GrGLSLShaderVar("midComp", kFloat_GrSLType), in add_sat_function()
[all …]
DGrGLSLShaderVar.h20 class GrGLSLShaderVar : public GrShaderVar {
25 GrGLSLShaderVar() in GrGLSLShaderVar() function
30 GrGLSLShaderVar(const char* name, GrSLType type, int arrayCount = kNonArray,
38 GrGLSLShaderVar(const char* name, GrSLType type, TypeModifier typeModifier,
45 GrGLSLShaderVar(const GrShaderVar& var) in GrGLSLShaderVar() function
51 GrGLSLShaderVar(const GrGLSLShaderVar& var) in GrGLSLShaderVar() function
DGrGLSLProgramBuilder.h23 class GrGLSLShaderVar; variable
73 virtual void finalizeFragmentOutputColor(GrGLSLShaderVar& outputColor) {} in finalizeFragmentOutputColor()
74 virtual void finalizeFragmentSecondaryColor(GrGLSLShaderVar& outputColor) {} in finalizeFragmentSecondaryColor()
DGrGLSLShaderBuilder.h104 void declAppend(const GrGLSLShaderVar& var);
110 const GrGLSLShaderVar* args,
142 typedef GrTAllocator<GrGLSLShaderVar> VarArray;
DGrGLSLFragmentShaderBuilder.cpp142 GrGLSLShaderVar::kIn_TypeModifier, in fragmentPosition()
262 GrGLSLShaderVar::kOut_TypeModifier, in enableCustomOutput()
281 fOutputs.push_back().set(kVec4f_GrSLType, GrGLSLShaderVar::kOut_TypeModifier, in enableSecondaryOutput()
DGrGLSLShaderBuilder.cpp32 void GrGLSLShaderBuilder::declAppend(const GrGLSLShaderVar& var) { in declAppend()
41 const GrGLSLShaderVar* args, in emitFunction()
DGrGLSLVarying.cpp84 const GrGLSLShaderVar& attr = fVertexInputs[j]; in addAttribute()
125 fGeomOutputs.push_back().set(v.fType, GrGLSLShaderVar::kVaryingOut_TypeModifier, in finalize()
/external/skia/src/gpu/vk/
DGrVkProgramDataManager.cpp27 SkASSERT(GrGLSLShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkProgramDataManager()
44 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set1f()
65 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in set1fv()
83 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set2f()
105 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in set2fv()
123 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set3f()
145 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in set3fv()
163 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set4f()
185 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount)); in set4fv()
203 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in setMatrix3f()
[all …]
DGrVkUniformHandler.h31 GrGLSLShaderVar fVariable;
39 const GrGLSLShaderVar& getUniformVariable(UniformHandle u) const override { in getUniformVariable()
DGrVkUniformHandler.cpp95 uni.fVariable.setTypeModifier(GrGLSLShaderVar::kNone_TypeModifier); in internalAddUniformArray()
108 uni.fVariable.setTypeModifier(GrGLSLShaderVar::kUniform_TypeModifier); in internalAddUniformArray()
DGrVkProgramBuilder.h43 void finalizeFragmentOutputColor(GrGLSLShaderVar& outputColor) override;
/external/skia/src/gpu/effects/
DGrBicubicEffect.cpp63 static const GrGLSLShaderVar gCubicBlendArgs[] = { in emitCode()
64 GrGLSLShaderVar("coefficients", kMat44f_GrSLType), in emitCode()
65 GrGLSLShaderVar("t", kFloat_GrSLType), in emitCode()
66 GrGLSLShaderVar("c0", kVec4f_GrSLType), in emitCode()
67 GrGLSLShaderVar("c1", kVec4f_GrSLType), in emitCode()
68 GrGLSLShaderVar("c2", kVec4f_GrSLType), in emitCode()
69 GrGLSLShaderVar("c3", kVec4f_GrSLType), in emitCode()
DGrBezierEffect.cpp126 GrGLSLShaderVar edgeAlpha("edgeAlpha", kFloat_GrSLType, 0, precision); in onEmitCode()
127 GrGLSLShaderVar dklmdx("dklmdx", kVec3f_GrSLType, 0, precision); in onEmitCode()
128 GrGLSLShaderVar dklmdy("dklmdy", kVec3f_GrSLType, 0, precision); in onEmitCode()
129 GrGLSLShaderVar dfdx("dfdx", kFloat_GrSLType, 0, precision); in onEmitCode()
130 GrGLSLShaderVar dfdy("dfdy", kFloat_GrSLType, 0, precision); in onEmitCode()
131 GrGLSLShaderVar gF("gF", kVec2f_GrSLType, 0, precision); in onEmitCode()
132 GrGLSLShaderVar gFM("gFM", kFloat_GrSLType, 0, precision); in onEmitCode()
133 GrGLSLShaderVar func("func", kFloat_GrSLType, 0, precision); in onEmitCode()
591 GrGLSLShaderVar edgeAlpha("edgeAlpha", kFloat_GrSLType, 0, kHigh_GrSLPrecision); in onEmitCode()
592 GrGLSLShaderVar dklmdx("dklmdx", kVec3f_GrSLType, 0, kHigh_GrSLPrecision); in onEmitCode()
[all …]
DGrDistanceFieldGeoProc.cpp98 fragBuilder->codeAppend(GrGLSLShaderVar::PrecisionString(args.fGLSLCaps, in onEmitCode()
322 fragBuilder->codeAppend(GrGLSLShaderVar::PrecisionString(args.fGLSLCaps, in onEmitCode()
334 fragBuilder->codeAppend(GrGLSLShaderVar::PrecisionString(args.fGLSLCaps, in onEmitCode()
545 fragBuilder->codeAppend(GrGLSLShaderVar::PrecisionString(args.fGLSLCaps, in onEmitCode()
548 fragBuilder->codeAppend(GrGLSLShaderVar::PrecisionString(args.fGLSLCaps, in onEmitCode()
/external/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp15 (1 == arrayCount && GrGLSLShaderVar::kNonArray == uni.fArrayCount))
27 SkASSERT(GrGLSLShaderVar::kNonArray == builderUniform.fVariable.getArrayCount() || in GrGLProgramDataManager()
54 SkASSERT(GrGLSLShaderVar::kNonArray == builderPathProcVarying.fVariable.getArrayCount() || in GrGLProgramDataManager()
68 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in setSampler()
84 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set1f()
116 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set2f()
145 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set3f()
178 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set4f()
207 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in setMatrix3f()
220 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in setMatrix4f()
DGrGLProgramDataManager.h30 GrGLSLShaderVar fVariable;
36 GrGLSLShaderVar fVariable;
DGrGLUniformHandler.h21 const GrGLSLShaderVar& getUniformVariable(UniformHandle u) const override { in getUniformVariable()
/external/skia/bench/
DGLVertexAttributesBench.cpp72 GrGLSLShaderVar aPosition("a_position", kVec4f_GrSLType, GrShaderVar::kAttribute_TypeModifier); in setupShader()
73 SkTArray<GrGLSLShaderVar> aVars; in setupShader()
74 SkTArray<GrGLSLShaderVar> oVars; in setupShader()
83 aVars.push_back(GrGLSLShaderVar(aname.c_str(), in setupShader()
94 oVars.push_back(GrGLSLShaderVar(oname.c_str(), in setupShader()
120 GrGLSLShaderVar oFragColor("o_FragColor", kVec4f_GrSLType, GrShaderVar::kOut_TypeModifier); in setupShader()
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()
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()
/external/skia/experimental/SkPerlinNoiseShader2/
DSkPerlinNoiseShader2.cpp775 static const GrGLSLShaderVar gPerlinNoiseArgs[] = { in emitCode()
776 GrGLSLShaderVar(chanCoord, kFloat_GrSLType), in emitCode()
777 GrGLSLShaderVar(noiseVec, kVec2f_GrSLType) in emitCode()
780 static const GrGLSLShaderVar gPerlinNoiseStitchArgs[] = { in emitCode()
781 GrGLSLShaderVar(chanCoord, kFloat_GrSLType), in emitCode()
782 GrGLSLShaderVar(noiseVec, kVec2f_GrSLType), in emitCode()
783 GrGLSLShaderVar(stitchData, kVec2f_GrSLType) in emitCode()
1158 static const GrGLSLShaderVar fadeArgs[] = { in emitCode()
1159 GrGLSLShaderVar("t", kVec3f_GrSLType) in emitCode()
1168 static const GrGLSLShaderVar permArgs[] = { in emitCode()
[all …]
/external/skia/src/effects/
DSkPixelXorXfermode.cpp60 static const GrGLSLShaderVar gXorArgs[] = { in add_pixelxor_code()
61 GrGLSLShaderVar("f1", kFloat_GrSLType), in add_pixelxor_code()
62 GrGLSLShaderVar("f2", kFloat_GrSLType), in add_pixelxor_code()
63 GrGLSLShaderVar("f3", kFloat_GrSLType), in add_pixelxor_code()
64 GrGLSLShaderVar("fPowerOf2Divisor", kFloat_GrSLType), in add_pixelxor_code()
DSkLightingImageFilter.cpp1743 static const GrGLSLShaderVar gSobelArgs[] = { in emitCode()
1744 GrGLSLShaderVar("a", kFloat_GrSLType), in emitCode()
1745 GrGLSLShaderVar("b", kFloat_GrSLType), in emitCode()
1746 GrGLSLShaderVar("c", kFloat_GrSLType), in emitCode()
1747 GrGLSLShaderVar("d", kFloat_GrSLType), in emitCode()
1748 GrGLSLShaderVar("e", kFloat_GrSLType), in emitCode()
1749 GrGLSLShaderVar("f", kFloat_GrSLType), in emitCode()
1750 GrGLSLShaderVar("scale", kFloat_GrSLType), in emitCode()
1761 static const GrGLSLShaderVar gPointToNormalArgs[] = { in emitCode()
1762 GrGLSLShaderVar("x", kFloat_GrSLType), in emitCode()
[all …]
DSkPerlinNoiseShader.cpp637 static const GrGLSLShaderVar gPerlinNoiseArgs[] = { in emitCode()
638 GrGLSLShaderVar(chanCoord, kFloat_GrSLType), in emitCode()
639 GrGLSLShaderVar(noiseVec, kVec2f_GrSLType) in emitCode()
642 static const GrGLSLShaderVar gPerlinNoiseStitchArgs[] = { in emitCode()
643 GrGLSLShaderVar(chanCoord, kFloat_GrSLType), in emitCode()
644 GrGLSLShaderVar(noiseVec, kVec2f_GrSLType), in emitCode()
645 GrGLSLShaderVar(stitchData, kVec2f_GrSLType) in emitCode()
/external/skia/tools/debugger/
DSkOverdrawMode.cpp71 static const GrGLSLShaderVar gColorTableArgs[] = { in add_overdraw_code()
73 GrGLSLShaderVar("index", kFloat_GrSLType), in add_overdraw_code()

12