8#ifndef GrShaderVar_DEFINED
9#define GrShaderVar_DEFINED
51 , fTypeModifier(typeModifier)
59 , fTypeModifier(typeModifier)
66 , fTypeModifier(typeModifier)
69 , fLayoutQualifier(
std::move(layoutQualifier))
70 , fExtraModifiers(
std::move(extraModifier)) {}
104 if (!layoutQualifier || !strlen(layoutQualifier)) {
107 if (fLayoutQualifier.
isEmpty()) {
108 fLayoutQualifier = layoutQualifier;
110 fLayoutQualifier.
appendf(
", %s", layoutQualifier);
116 if (!modifier || !strlen(modifier)) {
119 if (fExtraModifiers.
isEmpty()) {
120 fExtraModifiers = modifier;
122 fExtraModifiers.
appendf(
" %s", modifier);
GrShaderVar & operator=(GrShaderVar &&)=default
void set(SkSLType type, const char *name)
int getArrayCount() const
GrShaderVar(const char *name, SkSLType type, int arrayCount=kNonArray)
GrShaderVar & operator=(const GrShaderVar &)=default
void addModifier(const char *modifier)
GrShaderVar(SkString name, SkSLType type, TypeModifier typeModifier, int arrayCount)
void setTypeModifier(TypeModifier type)
GrShaderVar(SkString name, SkSLType type, TypeModifier typeModifier, int arrayCount, SkString layoutQualifier, SkString extraModifier)
const char * c_str() const
void addLayoutQualifier(const char *layoutQualifier)
GrShaderVar(SkString name, SkSLType type, TypeModifier typeModifier)
GrShaderVar(const char *name, SkSLType type, TypeModifier typeModifier)
GrShaderVar(const GrShaderVar &)=default
GrShaderVar(GrShaderVar &&)=default
TypeModifier getTypeModifier() const
GrShaderVar(SkString name, SkSLType type, int arrayCount=kNonArray)
const SkString & getName() const
void appendDecl(const GrShaderCaps *, SkString *out) const
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
DEF_SWITCHES_START aot vmservice shared library name