|
| GrGLSLVertexBuilder (GrGLSLProgramBuilder *program) |
|
void | insertFunction (const char *functionDefinition) |
|
SkString & | functions () |
|
this | code ().appendVAList(format |
|
this | code ().prependVAList(format |
|
SkString & | code () |
|
| GrGLSLShaderBuilder (GrGLSLProgramBuilder *program) |
|
virtual | ~GrGLSLShaderBuilder () |
|
void | appendTextureLookup (SkString *out, SamplerHandle, const char *coordName) const |
|
void | appendTextureLookup (SamplerHandle, const char *coordName, GrGLSLColorSpaceXformHelper *colorXformHelper=nullptr) |
|
void | appendTextureLookupAndBlend (const char *dst, SkBlendMode, SamplerHandle, const char *coordName, GrGLSLColorSpaceXformHelper *colorXformHelper=nullptr) |
|
void | appendInputLoad (SamplerHandle) |
|
void | appendColorGamutXform (SkString *out, const char *srcColor, GrGLSLColorSpaceXformHelper *colorXformHelper) |
|
void | appendColorGamutXform (const char *srcColor, GrGLSLColorSpaceXformHelper *colorXformHelper) |
|
void | defineConstant (const char *type, const char *name, const char *value) |
|
void | defineConstant (const char *name, int value) |
|
void | defineConstant (const char *name, float value) |
|
void | defineConstantf (const char *type, const char *name, const char *fmt,...) SK_PRINTF_LIKE(4 |
|
| va_start (args, fmt) |
|
this | definitions ().appendVAList(fmt |
|
| va_end (args) |
|
this | definitions ().append(" |
|
void | definitionAppend (const char *str) |
|
void | declareGlobal (const GrShaderVar &) |
|
SkString | newTmpVarName (const char *suffix) |
|
void | codeAppendf (const char format[],...) SK_PRINTF_LIKE(2 |
|
void | va_start (args, format) |
|
this | code ().appendVAList(format |
|
| va_end (args) |
|
void | codeAppend (const char *str) |
|
void | codeAppend (const char *str, size_t length) |
|
void | codePrependf (const char format[],...) SK_PRINTF_LIKE(2 |
|
void | va_start (args, format) |
|
this | code ().prependVAList(format |
|
| va_end (args) |
|
void | declAppend (const GrShaderVar &var) |
|
SkString | getMangledFunctionName (const char *baseName) |
|
void | emitFunctionPrototype (SkSLType returnType, const char *mangledName, SkSpan< const GrShaderVar > args) |
|
void | emitFunctionPrototype (const char *declaration) |
|
void | emitFunction (SkSLType returnType, const char *mangledName, SkSpan< const GrShaderVar > args, const char *body) |
|
void | emitFunction (const char *declaration, const char *body) |
|
void | finalize (uint32_t visibility) |
|
GrGLSLProgramBuilder * | getProgramBuilder () |
|
|
using | SamplerHandle = GrGLSLUniformHandler::SamplerHandle |
|
void va_list | args |
|
this | args |
|
| n |
|
using | INHERITED = GrGLSLShaderBuilder |
|
enum | GLSLPrivateFeature {
kFragCoordConventions_GLSLPrivateFeature
, kBlendEquationAdvanced_GLSLPrivateFeature
, kBlendFuncExtended_GLSLPrivateFeature
, kFramebufferFetch_GLSLPrivateFeature
,
kNoPerspectiveInterpolation_GLSLPrivateFeature
, kSampleVariables_GLSLPrivateFeature
, kLastGLSLPrivateFeature = kSampleVariables_GLSLPrivateFeature
} |
|
enum | InterfaceQualifier { kIn_InterfaceQualifier
, kOut_InterfaceQualifier
, kLastInterfaceQualifier = kOut_InterfaceQualifier
} |
|
enum | {
kExtensions
, kDefinitions
, kPrecisionQualifier
, kLayoutQualifiers
,
kUniforms
, kInputs
, kOutputs
, kFunctions
,
kMain
, kCode
, kPrealloc = kCode + 6
} |
|
typedef SkTBlockList< GrShaderVar > | VarArray |
|
| GrGLSLVertexGeoBuilder (GrGLSLProgramBuilder *program) |
|
void | emitNormalizedSkPosition (const char *devPos, SkSLType devPosType=SkSLType::kFloat2) |
|
void | emitNormalizedSkPosition (SkString *out, const char *devPos, SkSLType devPosType=SkSLType::kFloat2) |
|
void | appendDecls (const VarArray &vars, SkString *out) const |
|
void | appendFunctionDecl (SkSLType returnType, const char *mangledName, SkSpan< const GrShaderVar > args) |
|
bool | addFeature (uint32_t featureBit, const char *extensionName) |
|
void | addLayoutQualifier (const char *param, InterfaceQualifier) |
|
void | compileAndAppendLayoutQualifiers () |
|
void | nextStage () |
|
void | deleteStage () |
|
SkString & | extensions () |
|
SkString & | definitions () |
|
SkString & | precisionQualifier () |
|
SkString & | layoutQualifiers () |
|
SkString & | uniforms () |
|
SkString & | inputs () |
|
SkString & | outputs () |
|
SkString & | functions () |
|
SkString & | main () |
|
SkString & | code () |
|
virtual void | onFinalize ()=0 |
|
GrGLSLProgramBuilder * | fProgramBuilder |
|
std::string | fCompilerString |
|
skia_private::STArray< kPrealloc, SkString > | fShaderStrings |
|
SkString | fCode |
|
SkString | fFunctions |
|
SkString | fExtensions |
|
SkSL::StatementArray | fDeclarations |
|
VarArray | fInputs |
|
VarArray | fOutputs |
|
uint32_t | fFeaturesAddedMask |
|
skia_private::STArray< 1, SkString > | fLayoutParams [kLastInterfaceQualifier+1] |
|
int | fCodeIndex |
|
bool | fFinalized |
|
int | fTmpVariableCounter |
|
Definition at line 49 of file GrGLSLVertexGeoBuilder.h.