webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | List of all members
TranslatorGLSL Class Reference

#include <TranslatorGLSL.h>

Inheritance diagram for TranslatorGLSL:
TCompiler TShHandleBase

Public Member Functions

 TranslatorGLSL (sh::GLenum type, ShShaderSpec spec, ShShaderOutput output)
 
- Public Member Functions inherited from TCompiler
 TCompiler (sh::GLenum type, ShShaderSpec spec, ShShaderOutput output)
 
 ~TCompiler () override
 
TCompilergetAsCompiler () override
 
bool Init (const ShBuiltInResources &resources)
 
TIntermBlockcompileTreeForTesting (const char *const shaderStrings[], size_t numStrings, ShCompileOptions compileOptions)
 
bool compile (const char *const shaderStrings[], size_t numStrings, ShCompileOptions compileOptions)
 
int getShaderVersion () const
 
TInfoSinkgetInfoSink ()
 
bool isComputeShaderLocalSizeDeclared () const
 
const sh::WorkGroupSizegetComputeShaderLocalSize ()
 
void clearResults ()
 
const std::vector< sh::Attribute > & getAttributes () const
 
const std::vector< sh::OutputVariable > & getOutputVariables () const
 
const std::vector< sh::Uniform > & getUniforms () const
 
const std::vector< sh::Varying > & getVaryings () const
 
const std::vector< sh::InterfaceBlock > & getInterfaceBlocks () const
 
ShHashFunction64 getHashFunction () const
 
NameMapgetNameMap ()
 
TSymbolTablegetSymbolTable ()
 
ShShaderSpec getShaderSpec () const
 
ShShaderOutput getOutputType () const
 
const std::stringgetBuiltInResourcesString () const
 
bool shouldRunLoopAndIndexingValidation (ShCompileOptions compileOptions) const
 
const ShBuiltInResourcesgetResources () const
 
- Public Member Functions inherited from TShHandleBase
 TShHandleBase ()
 
virtual ~TShHandleBase ()
 

Protected Member Functions

void initBuiltInFunctionEmulator (BuiltInFunctionEmulator *emu, ShCompileOptions compileOptions) override
 
void translate (TIntermNode *root, ShCompileOptions compileOptions) override
 
bool shouldFlattenPragmaStdglInvariantAll () override
 
- Protected Member Functions inherited from TCompiler
sh::GLenum getShaderType () const
 
bool InitBuiltInSymbolTable (const ShBuiltInResources &resources)
 
void setResourceString ()
 
bool checkCallDepth ()
 
bool validateOutputs (TIntermNode *root)
 
bool validateLimitations (TIntermNode *root)
 
void collectVariables (TIntermNode *root)
 
bool enforcePackingRestrictions ()
 
void useAllMembersInUnusedStandardAndSharedBlocks (TIntermNode *root)
 
void initializeOutputVariables (TIntermNode *root)
 
void initializeGLPosition (TIntermNode *root)
 
bool limitExpressionComplexity (TIntermNode *root)
 
const TExtensionBehaviorgetExtensionBehavior () const
 
const char * getSourcePath () const
 
const TPragmagetPragma () const
 
void writePragma (ShCompileOptions compileOptions)
 
unsigned int * getTemporaryIndex ()
 
bool isVaryingDefined (const char *varyingName)
 
const ArrayBoundsClampergetArrayBoundsClamper () const
 
ShArrayIndexClampingStrategy getArrayIndexClampingStrategy () const
 
const BuiltInFunctionEmulatorgetBuiltInFunctionEmulator () const
 
virtual bool shouldCollectVariables (ShCompileOptions compileOptions)
 

Additional Inherited Members

- Protected Attributes inherited from TCompiler
std::vector< sh::Attributeattributes
 
std::vector< sh::OutputVariableoutputVariables
 
std::vector< sh::Uniformuniforms
 
std::vector< sh::ShaderVariableexpandedUniforms
 
std::vector< sh::Varyingvaryings
 
std::vector< sh::InterfaceBlockinterfaceBlocks
 
bool variablesCollected
 
- Protected Attributes inherited from TShHandleBase
TPoolAllocator allocator
 

Constructor & Destructor Documentation

◆ TranslatorGLSL()

TranslatorGLSL::TranslatorGLSL ( sh::GLenum  type,
ShShaderSpec  spec,
ShShaderOutput  output 
)

Member Function Documentation

◆ initBuiltInFunctionEmulator()

void TranslatorGLSL::initBuiltInFunctionEmulator ( BuiltInFunctionEmulator emu,
ShCompileOptions  compileOptions 
)
overrideprotectedvirtual

Reimplemented from TCompiler.

◆ shouldFlattenPragmaStdglInvariantAll()

bool TranslatorGLSL::shouldFlattenPragmaStdglInvariantAll ( )
overrideprotectedvirtual

Implements TCompiler.

◆ translate()

void TranslatorGLSL::translate ( TIntermNode root,
ShCompileOptions  compileOptions 
)
overrideprotectedvirtual

Implements TCompiler.


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