Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSL::PipelineStage::Callbacks Class Referenceabstract

#include <SkSLPipelineStageCodeGenerator.h>

Public Member Functions

virtual ~Callbacks ()=default
 
virtual std::string getMainName ()
 
virtual std::string getMangledName (const char *name)
 
virtual void defineFunction (const char *declaration, const char *body, bool isMain)=0
 
virtual void declareFunction (const char *declaration)=0
 
virtual void defineStruct (const char *definition)=0
 
virtual void declareGlobal (const char *declaration)=0
 
virtual std::string declareUniform (const VarDeclaration *)=0
 
virtual std::string sampleShader (int index, std::string coords)=0
 
virtual std::string sampleColorFilter (int index, std::string color)=0
 
virtual std::string sampleBlender (int index, std::string src, std::string dst)=0
 
virtual std::string toLinearSrgb (std::string color)=0
 
virtual std::string fromLinearSrgb (std::string color)=0
 

Detailed Description

Definition at line 21 of file SkSLPipelineStageCodeGenerator.h.

Constructor & Destructor Documentation

◆ ~Callbacks()

virtual SkSL::PipelineStage::Callbacks::~Callbacks ( )
virtualdefault

Member Function Documentation

◆ declareFunction()

virtual void SkSL::PipelineStage::Callbacks::declareFunction ( const char *  declaration)
pure virtual

◆ declareGlobal()

virtual void SkSL::PipelineStage::Callbacks::declareGlobal ( const char *  declaration)
pure virtual

◆ declareUniform()

virtual std::string SkSL::PipelineStage::Callbacks::declareUniform ( const VarDeclaration )
pure virtual

◆ defineFunction()

virtual void SkSL::PipelineStage::Callbacks::defineFunction ( const char *  declaration,
const char *  body,
bool  isMain 
)
pure virtual

◆ defineStruct()

virtual void SkSL::PipelineStage::Callbacks::defineStruct ( const char *  definition)
pure virtual

◆ fromLinearSrgb()

virtual std::string SkSL::PipelineStage::Callbacks::fromLinearSrgb ( std::string  color)
pure virtual

◆ getMainName()

virtual std::string SkSL::PipelineStage::Callbacks::getMainName ( )
inlinevirtual

Definition at line 25 of file SkSLPipelineStageCodeGenerator.h.

25{ return "main"; }

◆ getMangledName()

virtual std::string SkSL::PipelineStage::Callbacks::getMangledName ( const char *  name)
inlinevirtual

Definition at line 26 of file SkSLPipelineStageCodeGenerator.h.

26{ return name; }
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

◆ sampleBlender()

virtual std::string SkSL::PipelineStage::Callbacks::sampleBlender ( int  index,
std::string  src,
std::string  dst 
)
pure virtual

◆ sampleColorFilter()

virtual std::string SkSL::PipelineStage::Callbacks::sampleColorFilter ( int  index,
std::string  color 
)
pure virtual

◆ sampleShader()

virtual std::string SkSL::PipelineStage::Callbacks::sampleShader ( int  index,
std::string  coords 
)
pure virtual

◆ toLinearSrgb()

virtual std::string SkSL::PipelineStage::Callbacks::toLinearSrgb ( std::string  color)
pure virtual

The documentation for this class was generated from the following file: