RetroArch
Classes | Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
glslang::TShader Class Reference

#include <ShaderLang.h>

Collaboration diagram for glslang::TShader:
[legend]

Classes

class  ForbidIncluder
 
class  Includer
 

Public Member Functions

 TShader (EShLanguage)
 
virtual ~TShader ()
 
void setStrings (const char *const *s, int n)
 
void setStringsWithLengths (const char *const *s, const int *l, int n)
 
void setStringsWithLengthsAndNames (const char *const *s, const int *l, const char *const *names, int n)
 
void setPreamble (const char *s)
 
void setEntryPoint (const char *entryPoint)
 
void setSourceEntryPoint (const char *sourceEntryPointName)
 
void addProcesses (const std::vector< std::string > &)
 
void setShiftBinding (TResourceType res, unsigned int base)
 
void setShiftSamplerBinding (unsigned int base)
 
void setShiftTextureBinding (unsigned int base)
 
void setShiftImageBinding (unsigned int base)
 
void setShiftUboBinding (unsigned int base)
 
void setShiftUavBinding (unsigned int base)
 
void setShiftCbufferBinding (unsigned int base)
 
void setShiftSsboBinding (unsigned int base)
 
void setShiftBindingForSet (TResourceType res, unsigned int base, unsigned int set)
 
void setResourceSetBinding (const std::vector< std::string > &base)
 
void setAutoMapBindings (bool map)
 
void setAutoMapLocations (bool map)
 
void setInvertY (bool invert)
 
void setHlslIoMapping (bool hlslIoMap)
 
void setFlattenUniformArrays (bool flatten)
 
void setNoStorageFormat (bool useUnknownFormat)
 
void setTextureSamplerTransformMode (EShTextureSamplerTransformMode mode)
 
void setEnvInput (EShSource lang, EShLanguage envStage, EShClient client, int version)
 
void setEnvClient (EShClient client, EShTargetClientVersion version)
 
void setEnvTarget (EShTargetLanguage lang, EShTargetLanguageVersion version)
 
void setEnvTargetHlslFunctionality1 ()
 
bool getEnvTargetHlslFunctionality1 () const
 
bool parse (const TBuiltInResource *, int defaultVersion, EProfile defaultProfile, bool forceDefaultVersionAndProfile, bool forwardCompatible, EShMessages, Includer &)
 
bool parse (const TBuiltInResource *res, int defaultVersion, EProfile defaultProfile, bool forceDefaultVersionAndProfile, bool forwardCompatible, EShMessages messages)
 
bool parse (const TBuiltInResource *builtInResources, int defaultVersion, bool forwardCompatible, EShMessages messages)
 
bool parse (const TBuiltInResource *builtInResources, int defaultVersion, bool forwardCompatible, EShMessages messages, Includer &includer)
 
bool preprocess (const TBuiltInResource *builtInResources, int defaultVersion, EProfile defaultProfile, bool forceDefaultVersionAndProfile, bool forwardCompatible, EShMessages message, std::string *outputString, Includer &includer)
 
const char * getInfoLog ()
 
const char * getInfoDebugLog ()
 
EShLanguage getStage () const
 
TIntermediategetIntermediate () const
 

Protected Attributes

TPoolAllocatorpool
 
EShLanguage stage
 
TCompilercompiler
 
TIntermediateintermediate
 
TInfoSinkinfoSink
 
const char *conststrings
 
const int * lengths
 
const char *conststringNames
 
const char * preamble
 
int numStrings
 
std::string sourceEntryPointName
 
TEnvironment environment
 

Private Member Functions

TShaderoperator= (TShader &)
 

Friends

class TProgram
 

Constructor & Destructor Documentation

◆ TShader()

glslang::TShader::TShader ( EShLanguage  s)
explicit

◆ ~TShader()

glslang::TShader::~TShader ( )
virtual

Member Function Documentation

◆ addProcesses()

void glslang::TShader::addProcesses ( const std::vector< std::string > &  p)
Here is the call graph for this function:

◆ getEnvTargetHlslFunctionality1()

bool glslang::TShader::getEnvTargetHlslFunctionality1 ( ) const
inline

◆ getInfoDebugLog()

const char * glslang::TShader::getInfoDebugLog ( )
Here is the call graph for this function:

◆ getInfoLog()

const char * glslang::TShader::getInfoLog ( )
Here is the call graph for this function:

◆ getIntermediate()

TIntermediate* glslang::TShader::getIntermediate ( ) const
inline

◆ getStage()

EShLanguage glslang::TShader::getStage ( ) const
inline

◆ operator=()

TShader& glslang::TShader::operator= ( TShader )
private

◆ parse() [1/4]

bool glslang::TShader::parse ( const TBuiltInResource builtInResources,
int  defaultVersion,
EProfile  defaultProfile,
bool  forceDefaultVersionAndProfile,
bool  forwardCompatible,
EShMessages  messages,
Includer includer 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse() [2/4]

bool glslang::TShader::parse ( const TBuiltInResource res,
int  defaultVersion,
EProfile  defaultProfile,
bool  forceDefaultVersionAndProfile,
bool  forwardCompatible,
EShMessages  messages 
)
inline
Here is the call graph for this function:

◆ parse() [3/4]

bool glslang::TShader::parse ( const TBuiltInResource builtInResources,
int  defaultVersion,
bool  forwardCompatible,
EShMessages  messages 
)
inline
Here is the call graph for this function:

◆ parse() [4/4]

bool glslang::TShader::parse ( const TBuiltInResource builtInResources,
int  defaultVersion,
bool  forwardCompatible,
EShMessages  messages,
Includer includer 
)
inline
Here is the call graph for this function:

◆ preprocess()

bool glslang::TShader::preprocess ( const TBuiltInResource builtInResources,
int  defaultVersion,
EProfile  defaultProfile,
bool  forceDefaultVersionAndProfile,
bool  forwardCompatible,
EShMessages  message,
std::string outputString,
Includer includer 
)
Here is the call graph for this function:

◆ setAutoMapBindings()

void glslang::TShader::setAutoMapBindings ( bool  map)
Here is the call graph for this function:

◆ setAutoMapLocations()

void glslang::TShader::setAutoMapLocations ( bool  map)
Here is the call graph for this function:

◆ setEntryPoint()

void glslang::TShader::setEntryPoint ( const char *  entryPoint)
Here is the call graph for this function:

◆ setEnvClient()

void glslang::TShader::setEnvClient ( EShClient  client,
EShTargetClientVersion  version 
)
inline

◆ setEnvInput()

void glslang::TShader::setEnvInput ( EShSource  lang,
EShLanguage  envStage,
EShClient  client,
int  version 
)
inline

◆ setEnvTarget()

void glslang::TShader::setEnvTarget ( EShTargetLanguage  lang,
EShTargetLanguageVersion  version 
)
inline

◆ setEnvTargetHlslFunctionality1()

void glslang::TShader::setEnvTargetHlslFunctionality1 ( )
inline

◆ setFlattenUniformArrays()

void glslang::TShader::setFlattenUniformArrays ( bool  flatten)
Here is the call graph for this function:

◆ setHlslIoMapping()

void glslang::TShader::setHlslIoMapping ( bool  hlslIoMap)
Here is the call graph for this function:

◆ setInvertY()

void glslang::TShader::setInvertY ( bool  invert)
Here is the call graph for this function:

◆ setNoStorageFormat()

void glslang::TShader::setNoStorageFormat ( bool  useUnknownFormat)
Here is the call graph for this function:

◆ setPreamble()

void glslang::TShader::setPreamble ( const char *  s)
inline

◆ setResourceSetBinding()

void glslang::TShader::setResourceSetBinding ( const std::vector< std::string > &  base)
Here is the call graph for this function:

◆ setShiftBinding()

void glslang::TShader::setShiftBinding ( TResourceType  res,
unsigned int  base 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setShiftBindingForSet()

void glslang::TShader::setShiftBindingForSet ( TResourceType  res,
unsigned int  base,
unsigned int  set 
)
Here is the call graph for this function:

◆ setShiftCbufferBinding()

void glslang::TShader::setShiftCbufferBinding ( unsigned int  base)
Here is the call graph for this function:

◆ setShiftImageBinding()

void glslang::TShader::setShiftImageBinding ( unsigned int  base)
Here is the call graph for this function:

◆ setShiftSamplerBinding()

void glslang::TShader::setShiftSamplerBinding ( unsigned int  base)
Here is the call graph for this function:

◆ setShiftSsboBinding()

void glslang::TShader::setShiftSsboBinding ( unsigned int  base)
Here is the call graph for this function:

◆ setShiftTextureBinding()

void glslang::TShader::setShiftTextureBinding ( unsigned int  base)
Here is the call graph for this function:

◆ setShiftUavBinding()

void glslang::TShader::setShiftUavBinding ( unsigned int  base)
Here is the call graph for this function:

◆ setShiftUboBinding()

void glslang::TShader::setShiftUboBinding ( unsigned int  base)
Here is the call graph for this function:

◆ setSourceEntryPoint()

void glslang::TShader::setSourceEntryPoint ( const char *  sourceEntryPointName)

◆ setStrings()

void glslang::TShader::setStrings ( const char *const s,
int  n 
)

◆ setStringsWithLengths()

void glslang::TShader::setStringsWithLengths ( const char *const s,
const int *  l,
int  n 
)

◆ setStringsWithLengthsAndNames()

void glslang::TShader::setStringsWithLengthsAndNames ( const char *const s,
const int *  l,
const char *const names,
int  n 
)

◆ setTextureSamplerTransformMode()

void glslang::TShader::setTextureSamplerTransformMode ( EShTextureSamplerTransformMode  mode)
Here is the call graph for this function:

Friends And Related Function Documentation

◆ TProgram

friend class TProgram
friend

Member Data Documentation

◆ compiler

TCompiler* glslang::TShader::compiler
protected

◆ environment

TEnvironment glslang::TShader::environment
protected

◆ infoSink

TInfoSink* glslang::TShader::infoSink
protected

◆ intermediate

TIntermediate* glslang::TShader::intermediate
protected

◆ lengths

const int* glslang::TShader::lengths
protected

◆ numStrings

int glslang::TShader::numStrings
protected

◆ pool

TPoolAllocator* glslang::TShader::pool
protected

◆ preamble

const char* glslang::TShader::preamble
protected

◆ sourceEntryPointName

std::string glslang::TShader::sourceEntryPointName
protected

◆ stage

EShLanguage glslang::TShader::stage
protected

◆ stringNames

const char* const* glslang::TShader::stringNames
protected

◆ strings

const char* const* glslang::TShader::strings
protected

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