/external/skia/tests/sksl/fp/ |
D | GrFunctionArgTypes.cpp | 23 …GrShaderVar takes_float_args[] = { GrShaderVar("f1", kFloat_GrSLType), GrShaderVar("f2", kFloat2_G… in emitCode() 25 …const GrShaderVar takes_float_matrix_args[] = { GrShaderVar("m2", kFloat2x2_GrSLType), GrShaderVar… in emitCode() 27 …GrShaderVar takes_half_args[] = { GrShaderVar("h1", kHalf_GrSLType), GrShaderVar("h2", kHalf2_GrSL… in emitCode() 29 …const GrShaderVar takes_half_matrix_args[] = { GrShaderVar("m2", kHalf2x2_GrSLType), GrShaderVar("… in emitCode() 31 … GrShaderVar takes_bool_args[] = { GrShaderVar("b", kBool_GrSLType), GrShaderVar("b2", kBool2_GrSL… in emitCode() 33 …st GrShaderVar takes_int_args[] = { GrShaderVar("i", kInt_GrSLType), GrShaderVar("i2", kInt2_GrSLT… in emitCode()
|
D | GrFunctionReturnTypes.cpp | 23 const GrShaderVar returns_float_args[] = { }; in emitCode() 25 const GrShaderVar returns_float2_args[] = { }; in emitCode() 27 const GrShaderVar returns_float3_args[] = { }; in emitCode() 29 const GrShaderVar returns_float4_args[] = { }; in emitCode() 31 const GrShaderVar returns_float2x2_args[] = { }; in emitCode() 33 const GrShaderVar returns_float3x3_args[] = { }; in emitCode() 35 const GrShaderVar returns_float4x4_args[] = { }; in emitCode() 37 const GrShaderVar returns_half_args[] = { }; in emitCode() 39 const GrShaderVar returns_half2_args[] = { }; in emitCode() 41 const GrShaderVar returns_half3_args[] = { }; in emitCode() [all …]
|
D | GrGrSLTypesAreSupported.cpp | 23 const GrShaderVar test_i_args[] = { GrShaderVar("a", kInt_GrSLType) }; in emitCode() 25 const GrShaderVar test_i2_args[] = { GrShaderVar("a", kInt2_GrSLType) }; in emitCode() 27 const GrShaderVar test_i3_args[] = { GrShaderVar("a", kInt3_GrSLType) }; in emitCode() 29 const GrShaderVar test_i4_args[] = { GrShaderVar("a", kInt4_GrSLType) }; in emitCode() 31 const GrShaderVar test_h3x3_args[] = { GrShaderVar("a", kHalf3x3_GrSLType) }; in emitCode() 33 const GrShaderVar test_f2x2_args[] = { GrShaderVar("a", kFloat2x2_GrSLType) }; in emitCode()
|
/external/skia/src/gpu/ |
D | GrShaderVar.h | 19 class GrShaderVar { 36 GrShaderVar() in GrShaderVar() function 41 GrShaderVar(SkString name, GrSLType type, int arrayCount = kNonArray) 46 GrShaderVar(const char* name, GrSLType type, int arrayCount = kNonArray) 47 : GrShaderVar(SkString(name), type, arrayCount) {} in GrShaderVar() function 49 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier) in GrShaderVar() function 54 GrShaderVar(const char* name, GrSLType type, TypeModifier typeModifier) in GrShaderVar() function 55 : GrShaderVar(SkString(name), type, typeModifier) {} in GrShaderVar() 57 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier, int arrayCount) in GrShaderVar() function 63 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier, int arrayCount, in GrShaderVar() function [all …]
|
D | GrShaderVar.cpp | 12 static const char* type_modifier_string(GrShaderVar::TypeModifier t) { in type_modifier_string() 14 case GrShaderVar::TypeModifier::None: return ""; in type_modifier_string() 15 case GrShaderVar::TypeModifier::In: return "in"; in type_modifier_string() 16 case GrShaderVar::TypeModifier::InOut: return "inout"; in type_modifier_string() 17 case GrShaderVar::TypeModifier::Out: return "out"; in type_modifier_string() 18 case GrShaderVar::TypeModifier::Uniform: return "uniform"; in type_modifier_string() 23 void GrShaderVar::appendDecl(const GrShaderCaps* shaderCaps, SkString* out) const { in appendDecl()
|
D | GrUniformDataManager.cpp | 32 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i() 44 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1iv() 57 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1f() 69 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1fv() 82 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set2i() 95 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set2iv() 108 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set2f() 121 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set2fv() 137 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set3i() 150 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set3iv() [all …]
|
D | GrSPIRVUniformHandler.cpp | 20 const GrShaderVar& GrSPIRVUniformHandler::getUniformVariable(UniformHandle u) const { in getUniformVariable() 231 GrShaderVar{std::move(resolvedName), type, GrShaderVar::TypeModifier::None, arrayCount, in internalAddUniformArray() 256 GrShaderVar{std::move(mangleName), kSampler_GrSLType, in addSampler() 257 GrShaderVar::TypeModifier::Uniform, GrShaderVar::kNonArray, in addSampler() 272 GrShaderVar{std::move(mangleTexName), kTexture2D_GrSLType, in addSampler() 273 GrShaderVar::TypeModifier::Uniform, GrShaderVar::kNonArray, in addSampler()
|
/external/skqp/src/gpu/ |
D | GrShaderVar.cpp | 12 static const char* type_modifier_string(GrShaderVar::TypeModifier t) { in type_modifier_string() 14 case GrShaderVar::kNone_TypeModifier: return ""; in type_modifier_string() 15 case GrShaderVar::kIn_TypeModifier: return "in"; in type_modifier_string() 16 case GrShaderVar::kInOut_TypeModifier: return "inout"; in type_modifier_string() 17 case GrShaderVar::kOut_TypeModifier: return "out"; in type_modifier_string() 18 case GrShaderVar::kUniform_TypeModifier: return "uniform"; in type_modifier_string() 24 void GrShaderVar::setIOType(GrIOType ioType) { in setIOType() 55 void GrShaderVar::appendDecl(const GrShaderCaps* shaderCaps, SkString* out) const { in appendDecl()
|
D | GrShaderVar.h | 21 class GrShaderVar { 42 GrShaderVar() in GrShaderVar() function 49 GrShaderVar(const SkString& name, GrSLType type, int arrayCount = kNonArray, 61 GrShaderVar(const char* name, GrSLType type, int arrayCount = kNonArray, 73 GrShaderVar(const char* name, GrSLType type, TypeModifier typeModifier, 84 GrShaderVar(const char* name, GrSLType type, TypeModifier typeModifier, 95 GrShaderVar(const GrShaderVar& that) in GrShaderVar() function
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLVarying.cpp | 77 void GrGLSLVaryingHandler::addAttribute(const GrShaderVar& var) { in addAttribute() 78 SkASSERT(GrShaderVar::TypeModifier::In == var.getTypeModifier()); in addAttribute() 79 for (const GrShaderVar& attr : fVertexInputs.items()) { in addAttribute() 108 fVertexOutputs.emplace_back(v.fVsOut, v.fType, GrShaderVar::TypeModifier::Out, in finalize() 109 GrShaderVar::kNonArray, SkString(), SkString(modifier)); in finalize() 111 fGeomInputs.emplace_back(v.fVsOut, v.fType, GrShaderVar::TypeModifier::In, in finalize() 112 … GrShaderVar::kUnsizedArray, SkString(), SkString(modifier)); in finalize() 118 fGeomOutputs.emplace_back(v.fGsOut, v.fType, GrShaderVar::TypeModifier::Out, in finalize() 119 GrShaderVar::kNonArray, SkString(), SkString(modifier)); in finalize() 122 fFragInputs.emplace_back(SkString(fsIn), v.fType, GrShaderVar::TypeModifier::In, in finalize() [all …]
|
D | GrGLSLGeometryProcessor.cpp | 77 const GrShaderVar& localCoordsVar, in collectTransforms() 83 std::unordered_map<const GrFragmentProcessor*, GrShaderVar> localCoordsMap; in collectTransforms() 96 return GrShaderVar(SkString(baseLocalCoord.fsIn()), baseLocalCoord.type(), in collectTransforms() 97 GrShaderVar::TypeModifier::In); in collectTransforms() 109 GrShaderVar varyingVar; in collectTransforms() 117 GrShaderVar transformedLocalCoord; in collectTransforms() 148 {GrShaderVar(v.vsOut(), v.type()), localCoordsVar, coordOwner}); in collectTransforms() 150 GrShaderVar(SkString(v.fsIn()), v.type(), GrShaderVar::TypeModifier::In); in collectTransforms() 167 std::unordered_map<const GrFragmentProcessor*, GrShaderVar> localCoordsMap; in emitTransformCode() 180 GrShaderVar cachedBaseCoord = localCoordsMap[base]; in emitTransformCode() [all …]
|
D | GrGLSLGeometryProcessor.h | 46 FPCoordTransformHandler(const GrPipeline&, SkTArray<GrShaderVar>*); 56 void specifyCoordsForCurrCoordTransform(GrShaderVar varyingVar) { in specifyCoordsForCurrCoordTransform() 65 SkTArray<GrShaderVar>* fTransformedCoordVars; 167 GrShaderVar fPositionVar; 172 GrShaderVar fLocalCoordVar; 197 GrShaderVar localVar, 248 const GrShaderVar& localCoordsVar, 253 GrShaderVar fOutputCoords; 255 GrShaderVar fLocalCoords;
|
D | GrGLSLFragmentShaderBuilder.cpp | 44 GrShaderVar params[] = { GrShaderVar(args.fInputColor, kHalf4_GrSLType), in writeProcessorFunction() 45 GrShaderVar(args.fSampleCoord, kFloat2_GrSLType) }; in writeProcessorFunction() 55 const GrShaderVar& varying = args.fTransformedCoords[0]; in writeProcessorFunction() 98 fCustomColorOutput->setTypeModifier(GrShaderVar::TypeModifier::InOut); in dstColor() 122 GrShaderVar::TypeModifier::Out); in enableCustomOutput() 141 GrShaderVar::TypeModifier::Out); in enableSecondaryOutput() 152 fCustomColorOutput->getTypeModifier() == GrShaderVar::TypeModifier::InOut; in primaryColorOutputIsInOut()
|
D | GrGLSLUniformHandler.cpp | 13 GrShaderVar GrGLSLUniformHandler::getUniformMapping(const GrFragmentProcessor& owner, in getUniformMapping() 21 return GrShaderVar(); in getUniformMapping() 24 GrShaderVar GrGLSLUniformHandler::liftUniformToVertexShader(const GrFragmentProcessor& owner, in liftUniformToVertexShader() 36 return GrShaderVar(); in liftUniformToVertexShader()
|
D | GrGLSLShaderBuilder.cpp | 36 void GrGLSLShaderBuilder::declAppend(const GrShaderVar& var) { in declAppend() 42 void GrGLSLShaderBuilder::declareGlobal(const GrShaderVar& v) { in declareGlobal() 53 SkSpan<const GrShaderVar> args) { in appendFunctionDecl() 67 SkSpan<const GrShaderVar> args, in emitFunction() 83 SkSpan<const GrShaderVar> args) { in emitFunctionPrototype() 169 const GrShaderVar gTFArgs[] = { GrShaderVar("x", kHalf_GrSLType) }; in appendColorGamutXform() 221 const GrShaderVar gGamutXformArgs[] = { GrShaderVar("color", kHalf4_GrSLType) }; in appendColorGamutXform() 239 const GrShaderVar gColorXformArgs[] = { in appendColorGamutXform() 240 GrShaderVar("color", useFloat ? kFloat4_GrSLType : kHalf4_GrSLType)}; in appendColorGamutXform()
|
/external/skqp/src/gpu/vk/ |
D | GrVkPipelineStateDataManager.cpp | 29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkPipelineStateDataManager() 63 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i() 75 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1iv() 89 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1f() 102 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1fv() 116 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set2i() 129 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set2iv() 143 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set2f() 157 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set2fv() 174 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set3i() [all …]
|
/external/skqp/src/gpu/glsl/ |
D | GrGLSLBlend.cpp | 146 GrShaderVar getLumArgs[] = { in add_lum_function() 147 GrShaderVar("color", kHalf3_GrSLType), in add_lum_function() 157 GrShaderVar setLumArgs[] = { in add_lum_function() 158 GrShaderVar("hueSat", kHalf3_GrSLType), in add_lum_function() 159 GrShaderVar("alpha", kHalf_GrSLType), in add_lum_function() 160 GrShaderVar("lumColor", kHalf3_GrSLType), in add_lum_function() 191 GrShaderVar getSatArgs[] = { GrShaderVar("color", kHalf3_GrSLType) }; in add_sat_function() 206 GrShaderVar helperArgs[] = { in add_sat_function() 207 GrShaderVar("minComp", kHalf_GrSLType), in add_sat_function() 208 GrShaderVar("midComp", kHalf_GrSLType), in add_sat_function() [all …]
|
D | GrGLSLVarying.cpp | 78 void GrGLSLVaryingHandler::addAttribute(const GrShaderVar& var) { in addAttribute() 79 SkASSERT(GrShaderVar::kIn_TypeModifier == var.getTypeModifier()); in addAttribute() 81 const GrShaderVar& attr = fVertexInputs[j]; in addAttribute() 111 fVertexOutputs.push_back().set(v.fType, v.fVsOut, GrShaderVar::kOut_TypeModifier, in finalize() 114 fGeomInputs.push_back().set(v.fType, v.fVsOut, GrShaderVar::kUnsizedArray, in finalize() 115 GrShaderVar::kIn_TypeModifier, kDefault_GrSLPrecision, in finalize() 122 fGeomOutputs.push_back().set(v.fType, v.fGsOut, GrShaderVar::kOut_TypeModifier, in finalize() 126 fFragInputs.push_back().set(v.fType, fsIn, GrShaderVar::kIn_TypeModifier, in finalize()
|
D | GrGLSLShaderBuilder.cpp | 32 void GrGLSLShaderBuilder::declAppend(const GrShaderVar& var) { in declAppend() 38 void GrGLSLShaderBuilder::declareGlobal(const GrShaderVar& v) { in declareGlobal() 46 const GrShaderVar* args, in emitFunction() 74 const GrShaderVar& sampler = fProgramBuilder->samplerVariable(samplerHandle); in appendTextureLookup() 117 const GrShaderVar gTFArgs[] = { GrShaderVar("x", kHalf_GrSLType) }; in appendColorGamutXform() 149 const GrShaderVar gGamutXformArgs[] = { GrShaderVar("color", kHalf4_GrSLType) }; in appendColorGamutXform() 160 const GrShaderVar gColorXformArgs[] = { GrShaderVar("color", kHalf4_GrSLType) }; in appendColorGamutXform()
|
D | GrGLSLProgramBuilder.h | 22 class GrShaderVar; variable 48 const GrShaderVar& samplerVariable(SamplerHandle handle) const { in samplerVariable() 75 virtual void finalizeFragmentOutputColor(GrShaderVar& outputColor) {} in finalizeFragmentOutputColor() 76 virtual void finalizeFragmentSecondaryColor(GrShaderVar& outputColor) {} in finalizeFragmentSecondaryColor() 165 SkSTArray<4, GrShaderVar> fTransformedCoordVars;
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlPipelineStateDataManager.mm | 29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || 63 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); 75 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 89 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); 102 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 116 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); 129 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 143 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); 157 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 174 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkPipelineStateDataManager.cpp | 29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkPipelineStateDataManager() 74 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1iv() 92 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1fv() 110 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set2iv() 128 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set2fv() 147 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in setMatrix2fv()
|
D | GrVkUniformHandler.cpp | 256 GrShaderVar{std::move(resolvedName), type, GrShaderVar::TypeModifier::None, arrayCount}, in internalAddUniformArray() 282 GrShaderVar{std::move(mangleName), in addSampler() 284 GrShaderVar::TypeModifier::Uniform, GrShaderVar::kNonArray, in addSampler() 320 GrShaderVar{std::move(mangleName), kInput_GrSLType, GrShaderVar::TypeModifier::Uniform, in addInputSampler() 321 GrShaderVar::kNonArray, std::move(layoutQualifier), SkString()}, in addInputSampler()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCQuadraticShader.h | 38 const GrShaderVar fQCoordMatrix{"qcoord_matrix", kFloat2x2_GrSLType}; 39 const GrShaderVar fQCoord0{"qcoord0", kFloat2_GrSLType}; 40 const GrShaderVar fEdgeDistanceEquation{"edge_distance_equation", kFloat3_GrSLType};
|
/external/skia/gm/ |
D | tessellation.cpp | 73 GrShaderVar("P_", kFloat3_GrSLType, GrShaderVar::TypeModifier::Out)); in onEmitCode() 142 f->declareGlobal(GrShaderVar("barycentric_coord", kFloat3_GrSLType, in writeFragmentShader() 143 GrShaderVar::TypeModifier::In)); in writeFragmentShader() 183 GrShaderVar("M_", kFloat3x3_GrSLType, GrShaderVar::TypeModifier::Out)); in onEmitCode() 244 f->declareGlobal(GrShaderVar("barycentric_coord", kFloat4_GrSLType, in writeFragmentShader() 245 GrShaderVar::TypeModifier::In)); in writeFragmentShader()
|