Flutter Engine
The Flutter Engine
|
#include <GrGLSLFragmentShaderBuilder.h>
Public Member Functions | |
GrGLSLFragmentShaderBuilder (GrGLSLProgramBuilder *program) | |
const char * | dstColor () override |
void | forceHighPrecision () override |
bool | hasSecondaryOutput () const override |
void | enableAdvancedBlendEquationIfNeeded (skgpu::BlendEquation) override |
Public Member Functions inherited from GrGLSLFPFragmentBuilder | |
GrGLSLFPFragmentBuilder () | |
virtual void | forceHighPrecision ()=0 |
virtual const char * | dstColor ()=0 |
Public Member Functions inherited from GrGLSLShaderBuilder | |
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 () |
Public Member Functions inherited from GrGLSLXPFragmentBuilder | |
GrGLSLXPFragmentBuilder () | |
virtual bool | hasSecondaryOutput () const =0 |
virtual const char * | dstColor ()=0 |
virtual void | enableAdvancedBlendEquationIfNeeded (skgpu::BlendEquation)=0 |
Friends | |
class | GrGLSLProgramBuilder |
class | GrGLProgramBuilder |
class | GrVkPipelineStateBuilder |
Definition at line 84 of file GrGLSLFragmentShaderBuilder.h.
GrGLSLFragmentShaderBuilder::GrGLSLFragmentShaderBuilder | ( | GrGLSLProgramBuilder * | program | ) |
Definition at line 18 of file GrGLSLFragmentShaderBuilder.cpp.
|
overridevirtual |
Returns the variable name that holds the color of the destination pixel. This may be nullptr if no effect advertised that it will read the destination.
Implements GrGLSLFPFragmentBuilder.
Definition at line 21 of file GrGLSLFragmentShaderBuilder.cpp.
|
overridevirtual |
Adds any necessary layout qualifiers in order to legalize the supplied blend equation with this shader. It is only legal to call this method with an advanced blend equation, and only if these equations are supported.
Implements GrGLSLXPFragmentBuilder.
Definition at line 43 of file GrGLSLFragmentShaderBuilder.cpp.
|
inlineoverridevirtual |
Implements GrGLSLFPFragmentBuilder.
Definition at line 92 of file GrGLSLFragmentShaderBuilder.h.
|
inlineoverridevirtual |
Implements GrGLSLXPFragmentBuilder.
Definition at line 95 of file GrGLSLFragmentShaderBuilder.h.
|
friend |
Definition at line 131 of file GrGLSLFragmentShaderBuilder.h.
|
friend |
Definition at line 130 of file GrGLSLFragmentShaderBuilder.h.
|
friend |
Definition at line 132 of file GrGLSLFragmentShaderBuilder.h.