Flutter Engine
The Flutter Engine
|
#include <GrFragmentProcessor.h>
Public Member Functions | |
EmitArgs (GrGLSLFPFragmentBuilder *fragBuilder, GrGLSLUniformHandler *uniformHandler, const GrShaderCaps *caps, const GrFragmentProcessor &fp, const char *inputColor, const char *destColor, const char *sampleCoord) | |
Public Attributes | |
GrGLSLFPFragmentBuilder * | fFragBuilder |
GrGLSLUniformHandler * | fUniformHandler |
const GrShaderCaps * | fShaderCaps |
const GrFragmentProcessor & | fFp |
const char * | fInputColor |
const char * | fDestColor |
const char * | fSampleCoord |
Called when the program stage should insert its code into the shaders. The code in each shader will be in its own block ({}) and so locally scoped names will not collide across stages.
fragBuilder | Interface used to emit code in the shaders. |
uniformHandler | Interface used for accessing information about our uniforms |
caps | The capabilities of the GPU which will render this FP |
fp | The processor that generated this program stage. |
inputColor | A half4 that holds the input color to the stage in the FS (or the source color, for blend processors). nullptr inputs are converted to "half4(1.0)" (solid white) during construction. TODO: Better system for communicating optimization info (e.g. input color is solid white, trans black, known to be opaque, etc.) that allows the processor to communicate back similar known info about its output. |
destColor | A half4 that holds the dest color to the stage. Only meaningful when the "is blend processor" FP flag is set. |
sampleCoord | The name of a local coord reference to a float2 variable. Only meaningful when the "references sample coords" FP flag is set. |
Definition at line 501 of file GrFragmentProcessor.h.
|
inline |
Definition at line 502 of file GrFragmentProcessor.h.
const char* GrFragmentProcessor::ProgramImpl::EmitArgs::fDestColor |
Definition at line 521 of file GrFragmentProcessor.h.
const GrFragmentProcessor& GrFragmentProcessor::ProgramImpl::EmitArgs::fFp |
Definition at line 519 of file GrFragmentProcessor.h.
GrGLSLFPFragmentBuilder* GrFragmentProcessor::ProgramImpl::EmitArgs::fFragBuilder |
Definition at line 516 of file GrFragmentProcessor.h.
const char* GrFragmentProcessor::ProgramImpl::EmitArgs::fInputColor |
Definition at line 520 of file GrFragmentProcessor.h.
const char* GrFragmentProcessor::ProgramImpl::EmitArgs::fSampleCoord |
Definition at line 522 of file GrFragmentProcessor.h.
const GrShaderCaps* GrFragmentProcessor::ProgramImpl::EmitArgs::fShaderCaps |
Definition at line 518 of file GrFragmentProcessor.h.
GrGLSLUniformHandler* GrFragmentProcessor::ProgramImpl::EmitArgs::fUniformHandler |
Definition at line 517 of file GrFragmentProcessor.h.