/third_party/skia/src/gpu/ |
D | GrShaderVar.h | 19 class GrShaderVar { 35 GrShaderVar() in GrShaderVar() function 40 GrShaderVar(SkString name, GrSLType type, int arrayCount = kNonArray) 45 GrShaderVar(const char* name, GrSLType type, int arrayCount = kNonArray) 46 : GrShaderVar(SkString(name), type, arrayCount) {} in GrShaderVar() function 48 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier) in GrShaderVar() function 53 GrShaderVar(const char* name, GrSLType type, TypeModifier typeModifier) in GrShaderVar() function 54 : GrShaderVar(SkString(name), type, typeModifier) {} in GrShaderVar() 56 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier, int arrayCount) in GrShaderVar() function 62 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 | GrSPIRVUniformHandler.cpp | 20 const GrShaderVar& GrSPIRVUniformHandler::getUniformVariable(UniformHandle u) const { in getUniformVariable() 207 tempInfo.fVariable = GrShaderVar{std::move(resolvedName), in internalAddUniformArray() 209 GrShaderVar::TypeModifier::None, in internalAddUniformArray() 239 tempInfo.fVariable = GrShaderVar{std::move(mangleName), in addSampler() 241 GrShaderVar::TypeModifier::Uniform, in addSampler() 242 GrShaderVar::kNonArray, in addSampler() 258 tempInfo.fVariable = GrShaderVar{std::move(mangleTexName), in addSampler() 260 GrShaderVar::TypeModifier::Uniform, in addSampler() 261 GrShaderVar::kNonArray, in addSampler()
|
D | GrGeometryProcessor.cpp | 70 GrShaderVar positionVar = gpArgs.fPositionVar; in emitCode() 103 const GrShaderVar& localCoordsVar, in collectTransforms() 104 const GrShaderVar& positionVar, in collectTransforms() 239 GrShaderVar uniform = uniformHandler->liftUniformToVertexShader( in emitTransformCode() 247 GrShaderVar inputCoords = info.inputCoords; in emitTransformCode() 261 GrShaderVar parentUniform = uniformHandler->liftUniformToVertexShader( in emitTransformCode() 350 const GrShaderVar& inPos, in write_passthrough_vertex_position() 351 GrShaderVar* outPos) { in write_passthrough_vertex_position() 364 const GrShaderVar& inPos, in write_vertex_position() 367 GrShaderVar* outPos, in write_vertex_position() [all …]
|
D | GrGeometryProcessor.h | 86 GrShaderVar asShaderVar() const { in asShaderVar() 87 return {fName, fGPUType, GrShaderVar::TypeModifier::In}; in asShaderVar() 286 struct FPCoords {GrShaderVar coordsVarying; bool hasCoordsParam;}; 417 GrShaderVar fPositionVar; 422 GrShaderVar fLocalCoordVar; 447 GrShaderVar localVar, 464 const GrShaderVar& localCoordsVar, 465 const GrShaderVar& positionVar, 471 GrShaderVar inputCoords;
|
/third_party/skia/src/gpu/glsl/ |
D | GrGLSLVarying.h | 67 GrShaderVar vsOutVar() const { in vsOutVar() 69 return GrShaderVar(this->vsOut(), fType, GrShaderVar::TypeModifier::Out); in vsOutVar() 72 GrShaderVar fsInVar() const { in fsInVar() 74 return GrShaderVar(this->fsIn(), fType, GrShaderVar::TypeModifier::In); in fsInVar() 132 void addPassThroughAttribute(const GrShaderVar& vsVar, 154 typedef SkTBlockList<GrShaderVar> VarArray; 166 void addAttribute(const GrShaderVar& var);
|
D | GrGLSLVarying.cpp | 12 void GrGLSLVaryingHandler::addPassThroughAttribute(const GrShaderVar& vsVar, in addPassThroughAttribute() 69 void GrGLSLVaryingHandler::addAttribute(const GrShaderVar& var) { in addAttribute() 70 SkASSERT(GrShaderVar::TypeModifier::In == var.getTypeModifier()); in addAttribute() 71 for (const GrShaderVar& attr : fVertexInputs.items()) { in addAttribute() 97 fVertexOutputs.emplace_back(v.fVsOut, v.fType, GrShaderVar::TypeModifier::Out, in finalize() 98 GrShaderVar::kNonArray, SkString(), SkString(modifier)); in finalize() 102 fFragInputs.emplace_back(SkString(fsIn), v.fType, GrShaderVar::TypeModifier::In, in finalize() 103 GrShaderVar::kNonArray, SkString(), SkString(modifier)); in finalize() 110 for (const GrShaderVar& varying : vars.items()) { in appendDecls()
|
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() 173 const GrShaderVar gTFArgs[] = { GrShaderVar("x", kHalf_GrSLType) }; in appendColorGamutXform() 225 const GrShaderVar gGamutXformArgs[] = { GrShaderVar("color", kHalf4_GrSLType) }; in appendColorGamutXform() 243 const GrShaderVar gColorXformArgs[] = { in appendColorGamutXform() 244 GrShaderVar("color", useFloat ? kFloat4_GrSLType : kHalf4_GrSLType)}; in appendColorGamutXform()
|
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 | GrGLSLFragmentShaderBuilder.cpp | 30 fCustomColorOutput->setTypeModifier(GrShaderVar::TypeModifier::InOut); in dstColor() 54 GrShaderVar::TypeModifier::Out); in enableCustomOutput() 73 GrShaderVar::TypeModifier::Out); in enableSecondaryOutput() 84 fCustomColorOutput->getTypeModifier() == GrShaderVar::TypeModifier::InOut; in primaryColorOutputIsInOut()
|
D | GrGLSLShaderBuilder.h | 96 void declareGlobal(const GrShaderVar&); 131 void declAppend(const GrShaderVar& var); 142 SkSpan<const GrShaderVar> args); 149 SkSpan<const GrShaderVar> args, 182 typedef SkTBlockList<GrShaderVar> VarArray; 187 SkSpan<const GrShaderVar> args);
|
D | GrGLSLUniformHandler.h | 35 GrShaderVar fVariable; 74 virtual const GrShaderVar& getUniformVariable(UniformHandle u) const = 0; 88 GrShaderVar getUniformMapping(const GrFragmentProcessor& owner, SkString rawName) const; 92 GrShaderVar liftUniformToVertexShader(const GrFragmentProcessor& owner, SkString rawName);
|
D | GrGLSLProgramBuilder.h | 26 class GrShaderVar; variable 92 virtual void finalizeFragmentOutputColor(GrShaderVar& outputColor) {} in finalizeFragmentOutputColor() 93 virtual void finalizeFragmentSecondaryColor(GrShaderVar& outputColor) {} in finalizeFragmentSecondaryColor()
|
/third_party/skia/src/gpu/tessellate/shaders/ |
D | GrStrokeTessellationShader_HardwareImpl.cpp | 30 using TypeModifier = GrShaderVar::TypeModifier; in onEmitCode() 35 v->declareGlobal(GrShaderVar("vsJoinArgs0", kFloat4_GrSLType, TypeModifier::Out)); in onEmitCode() 38 v->declareGlobal(GrShaderVar("vsJoinArgs1", kFloat3_GrSLType, TypeModifier::Out)); in onEmitCode() 41 v->declareGlobal(GrShaderVar("vsPts01", kFloat4_GrSLType, TypeModifier::Out)); in onEmitCode() 42 v->declareGlobal(GrShaderVar("vsPts23", kFloat4_GrSLType, TypeModifier::Out)); in onEmitCode() 43 v->declareGlobal(GrShaderVar("vsPts45", kFloat4_GrSLType, TypeModifier::Out)); in onEmitCode() 44 v->declareGlobal(GrShaderVar("vsPts67", kFloat4_GrSLType, TypeModifier::Out)); in onEmitCode() 45 v->declareGlobal(GrShaderVar("vsPts89", kFloat4_GrSLType, TypeModifier::Out)); in onEmitCode() 46 v->declareGlobal(GrShaderVar("vsTans01", kFloat4_GrSLType, TypeModifier::Out)); in onEmitCode() 47 v->declareGlobal(GrShaderVar("vsTans23", kFloat4_GrSLType, TypeModifier::Out)); in onEmitCode() [all …]
|
D | GrPathTessellationShader_Hardware.cpp | 65 v->declareGlobal(GrShaderVar("vsPt", kFloat2_GrSLType, GrShaderVar::TypeModifier::Out)); in makeProgramImpl() 209 v->declareGlobal(GrShaderVar("P", kFloat2_GrSLType, GrShaderVar::TypeModifier::Out)); in makeProgramImpl()
|
/third_party/skia/src/gpu/gl/ |
D | GrGLProgramDataManager.cpp | 15 (1 == (COUNT) && GrShaderVar::kNonArray == (UNI).fArrayCount)) 23 SkASSERT(GrShaderVar::kNonArray == builderUniform.fVariable.getArrayCount() || in GrGLProgramDataManager() 48 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i() 69 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1f() 94 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set2i() 115 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set2f() 136 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set3i() 157 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set3f() 182 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set4i() 207 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set4f()
|
D | GrGLUniformHandler.cpp | 52 tempInfo.fVariable = GrShaderVar{std::move(resolvedName), in internalAddUniformArray() 54 GrShaderVar::TypeModifier::Uniform, in internalAddUniformArray() 81 tempInfo.fVariable = GrShaderVar{std::move(mangleName), in addSampler() 83 GrShaderVar::TypeModifier::Uniform}; in addSampler()
|
/third_party/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 | 223 tempInfo.fVariable = GrShaderVar{std::move(resolvedName), in internalAddUniformArray() 225 GrShaderVar::TypeModifier::None, in internalAddUniformArray() 261 GrShaderVar{std::move(mangleName), in addSampler() 263 GrShaderVar::TypeModifier::Uniform, in addSampler() 264 GrShaderVar::kNonArray, in addSampler() 306 GrShaderVar{std::move(mangleName), kInput_GrSLType, GrShaderVar::TypeModifier::Uniform, in addInputSampler() 307 GrShaderVar::kNonArray, std::move(layoutQualifier), SkString()}, in addInputSampler()
|
/third_party/skia/gm/ |
D | tessellation.cpp | 82 GrShaderVar("P_", kFloat3_GrSLType, GrShaderVar::TypeModifier::Out)); in onEmitCode() 154 f->declareGlobal(GrShaderVar("barycentric_coord", kFloat3_GrSLType, in writeFragmentShader() 155 GrShaderVar::TypeModifier::In)); in writeFragmentShader() 200 GrShaderVar("M_", kFloat3x3_GrSLType, GrShaderVar::TypeModifier::Out)); in onEmitCode() 264 f->declareGlobal(GrShaderVar("barycentric_coord", kFloat4_GrSLType, in writeFragmentShader() 265 GrShaderVar::TypeModifier::In)); in writeFragmentShader()
|
/third_party/skia/src/gpu/effects/ |
D | GrBezierEffect.cpp | 91 GrShaderVar edgeAlpha("edgeAlpha", kHalf_GrSLType, 0); in onEmitCode() 92 GrShaderVar dklmdx("dklmdx", kFloat3_GrSLType, 0); in onEmitCode() 93 GrShaderVar dklmdy("dklmdy", kFloat3_GrSLType, 0); in onEmitCode() 94 GrShaderVar dfdx("dfdx", kFloat_GrSLType, 0); in onEmitCode() 95 GrShaderVar dfdy("dfdy", kFloat_GrSLType, 0); in onEmitCode() 96 GrShaderVar gF("gF", kFloat2_GrSLType, 0); in onEmitCode() 97 GrShaderVar gFM("gFM", kFloat_GrSLType, 0); in onEmitCode() 98 GrShaderVar func("func", kFloat_GrSLType, 0); in onEmitCode()
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlPipelineStateDataManager.mm | 28 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || 48 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 61 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 74 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 87 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 104 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount));
|
D | GrMtlPipelineStateBuilder.h | 60 void finalizeFragmentOutputColor(GrShaderVar& outputColor) override; 62 void finalizeFragmentSecondaryColor(GrShaderVar& outputColor) override;
|
/third_party/skia/src/effects/imagefilters/ |
D | SkLightingImageFilter.cpp | 1774 const GrShaderVar gSobelArgs[] = { in emitCode() 1775 GrShaderVar("a", kHalf_GrSLType), in emitCode() 1776 GrShaderVar("b", kHalf_GrSLType), in emitCode() 1777 GrShaderVar("c", kHalf_GrSLType), in emitCode() 1778 GrShaderVar("d", kHalf_GrSLType), in emitCode() 1779 GrShaderVar("e", kHalf_GrSLType), in emitCode() 1780 GrShaderVar("f", kHalf_GrSLType), in emitCode() 1781 GrShaderVar("scale", kHalf_GrSLType), in emitCode() 1789 const GrShaderVar gPointToNormalArgs[] = { in emitCode() 1790 GrShaderVar("x", kHalf_GrSLType), in emitCode() [all …]
|
/third_party/skia/src/gpu/d3d/ |
D | GrD3DPipelineStateBuilder.h | 44 void finalizeFragmentOutputColor(GrShaderVar& outputColor) override; 45 void finalizeFragmentSecondaryColor(GrShaderVar& outputColor) override;
|