changes based on feedback
This commit is contained in:
parent
95e2d4ec02
commit
3ae0f58322
8 changed files with 453 additions and 188 deletions
|
|
@ -835,8 +835,8 @@ void TParseVersions::updateExtensionBehavior(const char* extension, TExtensionBe
|
|||
}
|
||||
|
||||
#ifdef NV_EXTENSIONS
|
||||
// Validate if extension name is used with correct shader stage.
|
||||
bool TParseVersions::validateExtensionName(const TSourceLoc& loc, const char * const extension)
|
||||
// Check if extension is used with correct shader stage.
|
||||
bool TParseVersions::checkShaderStageForNVExtensions(const TSourceLoc& loc, const char * const extension)
|
||||
{
|
||||
int lNumErrors = getNumErrors();
|
||||
|
||||
|
|
@ -845,6 +845,8 @@ bool TParseVersions::validateExtensionName(const TSourceLoc& loc, const char * c
|
|||
requireStage(loc, (EShLanguageMask)(EShLangTaskNVMask | EShLangMeshNVMask),
|
||||
"#extension GL_NV_mesh_shader");
|
||||
|
||||
// TODO: need to add error checks for other nvidia turing extensions
|
||||
|
||||
if (getNumErrors() > lNumErrors)
|
||||
return false;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue