39 #ifndef _PARSE_VERSIONS_INCLUDED_ 40 #define _PARSE_VERSIONS_INCLUDED_ 42 #include "../Public/ShaderLang.h" 43 #include "../Include/InfoSink.h" 66 virtual void profileRequires(
const TSourceLoc&,
int queryProfiles,
int minVersion,
int numExtensions,
const char*
const extensions[],
const char* featureDesc);
83 virtual void float16OpaqueCheck(
const TSourceLoc&,
const char*
op,
bool builtIn =
false);
99 const char* szExtraInfoFormat, ...) = 0;
101 const char* szExtraInfoFormat, ...) = 0;
103 const char* szExtraInfoFormat, ...) = 0;
105 const char* szExtraInfoFormat, ...) = 0;
147 #endif // _PARSE_VERSIONS_INCLUDED_
Definition: parseVersions.h:55
bool forwardCompatible
Definition: parseVersions.h:131
GLuint const GLchar * name
Definition: glext.h:6671
virtual void C_DECL ppWarn(const TSourceLoc &, const char *szReason, const char *szToken, const char *szExtraInfoFormat,...)=0
virtual bool checkExtensionsRequested(const TSourceLoc &, int numExtensions, const char *const extensions[], const char *featureDesc)
Definition: Versions.cpp:594
int version
Definition: parseVersions.h:127
set set set set set set set macro pixldst1 op
Definition: pixman-arm-neon-asm.h:54
Definition: InfoSink.h:138
Definition: Versions.h:83
EShLanguage
Definition: ShaderLang.h:90
virtual void spvRemoved(const TSourceLoc &, const char *op)
Definition: Versions.cpp:937
virtual void fullIntegerCheck(const TSourceLoc &, const char *op)
Definition: Versions.cpp:804
virtual void requireNotRemoved(const TSourceLoc &, int queryProfiles, int removedVersion, const char *featureDesc)
Definition: Versions.cpp:575
void addError()
Definition: parseVersions.h:107
TMap< TString, TExtensionBehavior > extensionBehavior
Definition: parseVersions.h:135
Definition: localintermediate.h:210
EShLanguageMask
Definition: ShaderLang.h:100
virtual void C_DECL ppError(const TSourceLoc &, const char *szReason, const char *szToken, const char *szExtraInfoFormat,...)=0
EShLanguage language
Definition: parseVersions.h:129
GLsizei const GLchar *const * string
Definition: glext.h:6699
TExtensionBehavior
Definition: Versions.h:94
virtual void vulkanRemoved(const TSourceLoc &, const char *op)
Definition: Versions.cpp:944
virtual void doubleCheck(const TSourceLoc &, const char *op)
Definition: Versions.cpp:811
void setCurrentLine(int line)
Definition: parseVersions.h:113
virtual void requireSpv(const TSourceLoc &, const char *op)
Definition: Versions.cpp:958
const TSourceLoc & getCurrentLoc() const
Definition: parseVersions.h:112
Definition: ShaderLang.h:207
virtual void C_DECL error(const TSourceLoc &, const char *szReason, const char *szToken, const char *szExtraInfoFormat,...)=0
void setString(int newString)
Definition: Scan.h:185
void setColumn(int col)
Definition: Scan.h:194
virtual void int64Check(const TSourceLoc &, const char *op, bool builtIn=false)
Definition: Versions.cpp:923
EProfile
Definition: Versions.h:51
virtual void explicitFloat64Check(const TSourceLoc &, const char *op, bool builtIn=false)
Definition: Versions.cpp:852
virtual void requireStage(const TSourceLoc &, EShLanguageMask, const char *featureDesc)
Definition: Versions.cpp:541
int getNumErrors() const
Definition: parseVersions.h:108
EProfile profile
Definition: parseVersions.h:128
TInputScanner * getScanner() const
Definition: parseVersions.h:111
virtual TExtensionBehavior getExtensionBehavior(const char *)
Definition: Versions.cpp:659
void setScanner(TInputScanner *scanner)
Definition: parseVersions.h:110
virtual void explicitInt32Check(const TSourceLoc &, const char *op, bool builtIn=false)
Definition: Versions.cpp:910
int numErrors
Definition: parseVersions.h:137
virtual void requireProfile(const TSourceLoc &, int queryProfiles, const char *featureDesc)
Definition: Versions.cpp:465
virtual void C_DECL warn(const TSourceLoc &, const char *szReason, const char *szToken, const char *szExtraInfoFormat,...)=0
Definition: ShaderLang.h:212
TInputScanner * currentScanner
Definition: parseVersions.h:138
TInfoSink & infoSink
Definition: parseVersions.h:124
virtual void initializeExtensionBehavior()
Definition: Versions.cpp:152
virtual void requireVulkan(const TSourceLoc &, const char *op)
Definition: Versions.cpp:951
virtual void explicitFloat32Check(const TSourceLoc &, const char *op, bool builtIn=false)
Definition: Versions.cpp:839
virtual void explicitInt16Check(const TSourceLoc &, const char *op, bool builtIn=false)
Definition: Versions.cpp:891
bool suppressWarnings() const
Definition: parseVersions.h:120
Definition: ShaderLang.h:217
void setLine(int newLine)
Definition: Scan.h:164
virtual void checkDeprecated(const TSourceLoc &, int queryProfiles, int depVersion, const char *featureDesc)
Definition: Versions.cpp:558
virtual void explicitInt8Check(const TSourceLoc &, const char *op, bool builtIn=false)
Definition: Versions.cpp:865
const TSourceLoc & getSourceLoc() const
Definition: Scan.h:208
u32 col
Definition: gx_regdef.h:5093
void setCurrentString(int string)
Definition: parseVersions.h:116
bool hlslEnable16BitTypes() const
Definition: parseVersions.h:122
#define C_DECL
Definition: ShaderLang.h:58
virtual void unimplemented(const TSourceLoc &, const char *featureDesc)
Definition: Versions.cpp:587
Definition: ShaderLang.h:206
TParseVersions(TIntermediate &interm, int version, EProfile profile, const SpvVersion &spvVersion, EShLanguage language, TInfoSink &infoSink, bool forwardCompatible, EShMessages messages)
Definition: parseVersions.h:57
virtual ~TParseVersions()
Definition: parseVersions.h:63
virtual void profileRequires(const TSourceLoc &, int queryProfiles, int minVersion, int numExtensions, const char *const extensions[], const char *featureDesc)
Definition: Versions.cpp:504
void setCurrentSourceName(const char *name)
Definition: parseVersions.h:115
bool relaxedErrors() const
Definition: parseVersions.h:119
bool isReadingHLSL() const
Definition: parseVersions.h:121
virtual void ppRequireExtensions(const TSourceLoc &, int numExtensions, const char *const extensions[], const char *featureDesc)
Definition: Versions.cpp:644
virtual void requireExtensions(const TSourceLoc &, int numExtensions, const char *const extensions[], const char *featureDesc)
Definition: Versions.cpp:625
virtual void updateExtensionBehavior(int line, const char *const extension, const char *behavior)
Definition: Versions.cpp:694
virtual bool extensionTurnedOn(const char *const extension)
Definition: Versions.cpp:669
EShMessages
Definition: ShaderLang.h:204
TParseVersions & operator=(const TParseVersions &)
virtual void float16Check(const TSourceLoc &, const char *op, bool builtIn=false)
Definition: Versions.cpp:819
void getPreamble(std::string &)
Definition: Versions.cpp:282
const char * extension
Definition: civetweb.c:4908
virtual bool extensionsTurnedOn(int numExtensions, const char *const extensions[])
Definition: Versions.cpp:682
EShMessages messages
Definition: parseVersions.h:136
void setCurrentColumn(int col)
Definition: parseVersions.h:114
SpvVersion spvVersion
Definition: parseVersions.h:130
TIntermediate & intermediate
Definition: parseVersions.h:132
void setFile(const char *filename)
Definition: Scan.h:171