RetroArch
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | List of all members
glslang::TParseVersions Class Referenceabstract

#include <parseVersions.h>

Inheritance diagram for glslang::TParseVersions:
[legend]
Collaboration diagram for glslang::TParseVersions:
[legend]

Public Member Functions

 TParseVersions (TIntermediate &interm, int version, EProfile profile, const SpvVersion &spvVersion, EShLanguage language, TInfoSink &infoSink, bool forwardCompatible, EShMessages messages)
 
virtual ~TParseVersions ()
 
virtual void initializeExtensionBehavior ()
 
virtual void requireProfile (const TSourceLoc &, int queryProfiles, const char *featureDesc)
 
virtual void profileRequires (const TSourceLoc &, int queryProfiles, int minVersion, int numExtensions, const char *const extensions[], const char *featureDesc)
 
virtual void profileRequires (const TSourceLoc &, int queryProfiles, int minVersion, const char *const extension, const char *featureDesc)
 
virtual void requireStage (const TSourceLoc &, EShLanguageMask, const char *featureDesc)
 
virtual void requireStage (const TSourceLoc &, EShLanguage, const char *featureDesc)
 
virtual void checkDeprecated (const TSourceLoc &, int queryProfiles, int depVersion, const char *featureDesc)
 
virtual void requireNotRemoved (const TSourceLoc &, int queryProfiles, int removedVersion, const char *featureDesc)
 
virtual void unimplemented (const TSourceLoc &, const char *featureDesc)
 
virtual void requireExtensions (const TSourceLoc &, int numExtensions, const char *const extensions[], const char *featureDesc)
 
virtual void ppRequireExtensions (const TSourceLoc &, int numExtensions, const char *const extensions[], const char *featureDesc)
 
virtual TExtensionBehavior getExtensionBehavior (const char *)
 
virtual bool extensionTurnedOn (const char *const extension)
 
virtual bool extensionsTurnedOn (int numExtensions, const char *const extensions[])
 
virtual void updateExtensionBehavior (int line, const char *const extension, const char *behavior)
 
virtual void fullIntegerCheck (const TSourceLoc &, const char *op)
 
virtual void doubleCheck (const TSourceLoc &, const char *op)
 
virtual void float16Check (const TSourceLoc &, const char *op, bool builtIn=false)
 
virtual void int64Check (const TSourceLoc &, const char *op, bool builtIn=false)
 
virtual void explicitInt8Check (const TSourceLoc &, const char *op, bool builtIn=false)
 
virtual void explicitInt16Check (const TSourceLoc &, const char *op, bool builtIn=false)
 
virtual void explicitInt32Check (const TSourceLoc &, const char *op, bool builtIn=false)
 
virtual void explicitFloat32Check (const TSourceLoc &, const char *op, bool builtIn=false)
 
virtual void explicitFloat64Check (const TSourceLoc &, const char *op, bool builtIn=false)
 
virtual void spvRemoved (const TSourceLoc &, const char *op)
 
virtual void vulkanRemoved (const TSourceLoc &, const char *op)
 
virtual void requireVulkan (const TSourceLoc &, const char *op)
 
virtual void requireSpv (const TSourceLoc &, const char *op)
 
virtual bool checkExtensionsRequested (const TSourceLoc &, int numExtensions, const char *const extensions[], const char *featureDesc)
 
virtual void updateExtensionBehavior (const char *const extension, TExtensionBehavior)
 
virtual void C_DECL error (const TSourceLoc &, const char *szReason, const char *szToken, const char *szExtraInfoFormat,...)=0
 
virtual void C_DECL warn (const TSourceLoc &, const char *szReason, const char *szToken, const char *szExtraInfoFormat,...)=0
 
virtual void C_DECL ppError (const TSourceLoc &, const char *szReason, const char *szToken, const char *szExtraInfoFormat,...)=0
 
virtual void C_DECL ppWarn (const TSourceLoc &, const char *szReason, const char *szToken, const char *szExtraInfoFormat,...)=0
 
void addError ()
 
int getNumErrors () const
 
void setScanner (TInputScanner *scanner)
 
TInputScannergetScanner () const
 
const TSourceLocgetCurrentLoc () const
 
void setCurrentLine (int line)
 
void setCurrentColumn (int col)
 
void setCurrentSourceName (const char *name)
 
void setCurrentString (int string)
 
void getPreamble (std::string &)
 
bool relaxedErrors () const
 
bool suppressWarnings () const
 
bool isReadingHLSL () const
 
bool hlslEnable16BitTypes () const
 

Public Attributes

TInfoSinkinfoSink
 
int version
 
EProfile profile
 
EShLanguage language
 
SpvVersion spvVersion
 
bool forwardCompatible
 
TIntermediateintermediate
 

Protected Attributes

TMap< TString, TExtensionBehaviorextensionBehavior
 
EShMessages messages
 
int numErrors
 
TInputScannercurrentScanner
 

Private Member Functions

 TParseVersions (const TParseVersions &)
 
TParseVersionsoperator= (const TParseVersions &)
 

Constructor & Destructor Documentation

◆ TParseVersions() [1/2]

glslang::TParseVersions::TParseVersions ( TIntermediate interm,
int  version,
EProfile  profile,
const SpvVersion spvVersion,
EShLanguage  language,
TInfoSink infoSink,
bool  forwardCompatible,
EShMessages  messages 
)
inline

◆ ~TParseVersions()

virtual glslang::TParseVersions::~TParseVersions ( )
inlinevirtual

◆ TParseVersions() [2/2]

glslang::TParseVersions::TParseVersions ( const TParseVersions )
explicitprivate

Member Function Documentation

◆ addError()

void glslang::TParseVersions::addError ( )
inline

◆ checkDeprecated()

void glslang::TParseVersions::checkDeprecated ( const TSourceLoc loc,
int  queryProfiles,
int  depVersion,
const char *  featureDesc 
)
virtual
Here is the call graph for this function:

◆ checkExtensionsRequested()

bool glslang::TParseVersions::checkExtensionsRequested ( const TSourceLoc loc,
int  numExtensions,
const char *const  extensions[],
const char *  featureDesc 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ doubleCheck()

void glslang::TParseVersions::doubleCheck ( const TSourceLoc loc,
const char *  op 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ error()

virtual void C_DECL glslang::TParseVersions::error ( const TSourceLoc ,
const char *  szReason,
const char *  szToken,
const char *  szExtraInfoFormat,
  ... 
)
pure virtual

Implemented in glslang::TParseContextBase.

Here is the caller graph for this function:

◆ explicitFloat32Check()

void glslang::TParseVersions::explicitFloat32Check ( const TSourceLoc loc,
const char *  op,
bool  builtIn = false 
)
virtual
Here is the call graph for this function:

◆ explicitFloat64Check()

void glslang::TParseVersions::explicitFloat64Check ( const TSourceLoc loc,
const char *  op,
bool  builtIn = false 
)
virtual
Here is the call graph for this function:

◆ explicitInt16Check()

void glslang::TParseVersions::explicitInt16Check ( const TSourceLoc loc,
const char *  op,
bool  builtIn = false 
)
virtual
Here is the call graph for this function:

◆ explicitInt32Check()

void glslang::TParseVersions::explicitInt32Check ( const TSourceLoc loc,
const char *  op,
bool  builtIn = false 
)
virtual
Here is the call graph for this function:

◆ explicitInt8Check()

void glslang::TParseVersions::explicitInt8Check ( const TSourceLoc loc,
const char *  op,
bool  builtIn = false 
)
virtual
Here is the call graph for this function:

◆ extensionsTurnedOn()

bool glslang::TParseVersions::extensionsTurnedOn ( int  numExtensions,
const char *const  extensions[] 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ extensionTurnedOn()

bool glslang::TParseVersions::extensionTurnedOn ( const char *const  extension)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ float16Check()

void glslang::TParseVersions::float16Check ( const TSourceLoc loc,
const char *  op,
bool  builtIn = false 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fullIntegerCheck()

void glslang::TParseVersions::fullIntegerCheck ( const TSourceLoc loc,
const char *  op 
)
virtual
Here is the call graph for this function:

◆ getCurrentLoc()

const TSourceLoc& glslang::TParseVersions::getCurrentLoc ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getExtensionBehavior()

TExtensionBehavior glslang::TParseVersions::getExtensionBehavior ( const char *  extension)
virtual
Here is the caller graph for this function:

◆ getNumErrors()

int glslang::TParseVersions::getNumErrors ( ) const
inline

◆ getPreamble()

void glslang::TParseVersions::getPreamble ( std::string preamble)

◆ getScanner()

TInputScanner* glslang::TParseVersions::getScanner ( ) const
inline
Here is the caller graph for this function:

◆ hlslEnable16BitTypes()

bool glslang::TParseVersions::hlslEnable16BitTypes ( ) const
inline
Here is the caller graph for this function:

◆ initializeExtensionBehavior()

void glslang::TParseVersions::initializeExtensionBehavior ( )
virtual

Reimplemented in glslang::HlslParseContext.

Here is the caller graph for this function:

◆ int64Check()

void glslang::TParseVersions::int64Check ( const TSourceLoc loc,
const char *  op,
bool  builtIn = false 
)
virtual
Here is the call graph for this function:

◆ isReadingHLSL()

bool glslang::TParseVersions::isReadingHLSL ( ) const
inline
Here is the caller graph for this function:

◆ operator=()

TParseVersions& glslang::TParseVersions::operator= ( const TParseVersions )
private

◆ ppError()

virtual void C_DECL glslang::TParseVersions::ppError ( const TSourceLoc ,
const char *  szReason,
const char *  szToken,
const char *  szExtraInfoFormat,
  ... 
)
pure virtual

Implemented in glslang::TParseContextBase.

Here is the caller graph for this function:

◆ ppRequireExtensions()

void glslang::TParseVersions::ppRequireExtensions ( const TSourceLoc loc,
int  numExtensions,
const char *const  extensions[],
const char *  featureDesc 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ppWarn()

virtual void C_DECL glslang::TParseVersions::ppWarn ( const TSourceLoc ,
const char *  szReason,
const char *  szToken,
const char *  szExtraInfoFormat,
  ... 
)
pure virtual

Implemented in glslang::TParseContextBase.

◆ profileRequires() [1/2]

void glslang::TParseVersions::profileRequires ( const TSourceLoc loc,
int  queryProfiles,
int  minVersion,
int  numExtensions,
const char *const  extensions[],
const char *  featureDesc 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ profileRequires() [2/2]

void glslang::TParseVersions::profileRequires ( const TSourceLoc loc,
int  queryProfiles,
int  minVersion,
const char *const  extension,
const char *  featureDesc 
)
virtual
Here is the call graph for this function:

◆ relaxedErrors()

bool glslang::TParseVersions::relaxedErrors ( ) const
inline
Here is the caller graph for this function:

◆ requireExtensions()

void glslang::TParseVersions::requireExtensions ( const TSourceLoc loc,
int  numExtensions,
const char *const  extensions[],
const char *  featureDesc 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requireNotRemoved()

void glslang::TParseVersions::requireNotRemoved ( const TSourceLoc loc,
int  queryProfiles,
int  removedVersion,
const char *  featureDesc 
)
virtual
Here is the call graph for this function:

◆ requireProfile()

void glslang::TParseVersions::requireProfile ( const TSourceLoc loc,
int  queryProfiles,
const char *  featureDesc 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requireSpv()

void glslang::TParseVersions::requireSpv ( const TSourceLoc loc,
const char *  op 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requireStage() [1/2]

void glslang::TParseVersions::requireStage ( const TSourceLoc loc,
EShLanguageMask  languageMask,
const char *  featureDesc 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requireStage() [2/2]

void glslang::TParseVersions::requireStage ( const TSourceLoc loc,
EShLanguage  stage,
const char *  featureDesc 
)
virtual
Here is the call graph for this function:

◆ requireVulkan()

void glslang::TParseVersions::requireVulkan ( const TSourceLoc loc,
const char *  op 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentColumn()

void glslang::TParseVersions::setCurrentColumn ( int  col)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentLine()

void glslang::TParseVersions::setCurrentLine ( int  line)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentSourceName()

void glslang::TParseVersions::setCurrentSourceName ( const char *  name)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentString()

void glslang::TParseVersions::setCurrentString ( int  string)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setScanner()

void glslang::TParseVersions::setScanner ( TInputScanner scanner)
inline
Here is the caller graph for this function:

◆ spvRemoved()

void glslang::TParseVersions::spvRemoved ( const TSourceLoc loc,
const char *  op 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ suppressWarnings()

bool glslang::TParseVersions::suppressWarnings ( ) const
inline
Here is the caller graph for this function:

◆ unimplemented()

void glslang::TParseVersions::unimplemented ( const TSourceLoc loc,
const char *  featureDesc 
)
virtual
Here is the call graph for this function:

◆ updateExtensionBehavior() [1/2]

void glslang::TParseVersions::updateExtensionBehavior ( int  line,
const char *const  extension,
const char *  behavior 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateExtensionBehavior() [2/2]

void glslang::TParseVersions::updateExtensionBehavior ( const char *const  extension,
TExtensionBehavior  behavior 
)
virtual
Here is the call graph for this function:

◆ vulkanRemoved()

void glslang::TParseVersions::vulkanRemoved ( const TSourceLoc loc,
const char *  op 
)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ warn()

virtual void C_DECL glslang::TParseVersions::warn ( const TSourceLoc ,
const char *  szReason,
const char *  szToken,
const char *  szExtraInfoFormat,
  ... 
)
pure virtual

Implemented in glslang::TParseContextBase.

Here is the caller graph for this function:

Member Data Documentation

◆ currentScanner

TInputScanner* glslang::TParseVersions::currentScanner
protected

◆ extensionBehavior

TMap<TString, TExtensionBehavior> glslang::TParseVersions::extensionBehavior
protected

◆ forwardCompatible

bool glslang::TParseVersions::forwardCompatible

◆ infoSink

TInfoSink& glslang::TParseVersions::infoSink

◆ intermediate

TIntermediate& glslang::TParseVersions::intermediate

◆ language

EShLanguage glslang::TParseVersions::language

◆ messages

EShMessages glslang::TParseVersions::messages
protected

◆ numErrors

int glslang::TParseVersions::numErrors
protected

◆ profile

EProfile glslang::TParseVersions::profile

◆ spvVersion

SpvVersion glslang::TParseVersions::spvVersion

◆ version

int glslang::TParseVersions::version

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