Convert keyword maps to static initializers

Rather than having a function that needs to be called from ShInitialize
to initialize some global costants, convert them to use static
initializers.
This commit is contained in:
Arcady Goldmints-Orlov 2024-09-09 17:20:19 -07:00 committed by arcady-lunarg
parent 6495f77b04
commit dc1012140e
3 changed files with 897 additions and 955 deletions

View file

@ -1324,11 +1324,6 @@ int ShInitialize()
if (PerProcessGPA == nullptr)
PerProcessGPA = new TPoolAllocator();
glslang::TScanContext::fillInKeywordMap();
#ifdef ENABLE_HLSL
glslang::HlslScanContext::fillInKeywordMap();
#endif
return 1;
}
@ -1417,11 +1412,6 @@ int ShFinalize()
PerProcessGPA = nullptr;
}
glslang::TScanContext::deleteKeywordMap();
#ifdef ENABLE_HLSL
glslang::HlslScanContext::deleteKeywordMap();
#endif
return 1;
}