From 63845a42509c0281dbce8ac3d8368b06c2e00f6e Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 3 Sep 2020 16:53:22 +0800 Subject: [PATCH] set defaultVersion to 110 --- glsl2spv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glsl2spv.cpp b/glsl2spv.cpp index 62e8505..ca0a316 100644 --- a/glsl2spv.cpp +++ b/glsl2spv.cpp @@ -407,7 +407,7 @@ extern "C" shader.setStrings(shaderStrings, 1); shader.setEnvClient(glslang::EShClientVulkan, glslang::EShTargetVulkan_1_2); - if (!shader.parse(&Resources, 100, ECoreProfile, false, false, messages)) + if (!shader.parse(&Resources, 110, ECoreProfile, false, false, messages)) return(new SPVData(shader.getInfoLog(),shader.getInfoDebugLog())); program.addShader(&shader);