diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp index 280ca7b0d8ffaf6cf6b4a993a9a97ca41c87c62e..356e016e8dc2dd32c83c8238bd9f10fe0aae17a2 100644 --- a/StandAlone/StandAlone.cpp +++ b/StandAlone/StandAlone.cpp @@ -160,9 +160,9 @@ const char* variableName = nullptr; bool HlslEnable16BitTypes = false; std::vector<std::string> IncludeDirectoryList; int ClientInputSemanticsVersion = 100; // maps to, say, #define VULKAN 100 -glslang::EshTargetClientVersion VulkanClientVersion = +glslang::EShTargetClientVersion VulkanClientVersion = glslang::EShTargetVulkan_1_0; // would map to, say, Vulkan 1.0 -glslang::EshTargetClientVersion OpenGLClientVersion = +glslang::EShTargetClientVersion OpenGLClientVersion = glslang::EShTargetOpenGL_450; // doesn't influence anything yet, but maps to OpenGL 4.50 glslang::EShTargetLanguageVersion TargetVersion = glslang::EShTargetSpv_1_0; // maps to, say, SPIR-V 1.0 diff --git a/glslang/Public/ShaderLang.h b/glslang/Public/ShaderLang.h index 6400ecf01857cdd5d2f88dbb95430dc8feb005b6..ef6c07458d8f70c3de0efd251de017d097cf37b3 100644 --- a/glslang/Public/ShaderLang.h +++ b/glslang/Public/ShaderLang.h @@ -132,7 +132,9 @@ typedef enum { EShTargetVulkan_1_0 = (1 << 22), EShTargetVulkan_1_1 = (1 << 22) | (1 << 12), EShTargetOpenGL_450 = 450, -} EshTargetClientVersion; +} EShTargetClientVersion; + +typedef EShTargetClientVersion EshTargetClientVersion; typedef enum { EShTargetSpv_1_0 = (1 << 16), @@ -148,7 +150,7 @@ struct TInputLanguage { struct TClient { EShClient client; - EshTargetClientVersion version; // version of client itself (not the client's input dialect) + EShTargetClientVersion version; // version of client itself (not the client's input dialect) }; struct TTarget { @@ -411,7 +413,7 @@ public: environment.input.dialect = client; environment.input.dialectVersion = version; } - void setEnvClient(EShClient client, EshTargetClientVersion version) + void setEnvClient(EShClient client, EShTargetClientVersion version) { environment.client.client = client; environment.client.version = version; diff --git a/gtests/TestFixture.h b/gtests/TestFixture.h index 5af96d97baad092b0526f0e7f6204abf608354c3..0e984d4e56f1100c6e64e10214a5b47c3a1f7935 100644 --- a/gtests/TestFixture.h +++ b/gtests/TestFixture.h @@ -197,7 +197,7 @@ public: GlslangResult compileAndLink( const std::string shaderName, const std::string& code, const std::string& entryPointName, EShMessages controls, - glslang::EshTargetClientVersion clientTargetVersion, + glslang::EShTargetClientVersion clientTargetVersion, bool flattenUniformArrays = false, EShTextureSamplerTransformMode texSampTransMode = EShTexSampTransKeep, bool disableOptimizer = true, @@ -407,7 +407,7 @@ public: const std::string& testName, Source source, Semantics semantics, - glslang::EshTargetClientVersion clientTargetVersion, + glslang::EShTargetClientVersion clientTargetVersion, Target target, bool automap = true, const std::string& entryPointName="",