Skip to content

Commit

Permalink
force use CoreProfile and Vulkan1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzboy committed Sep 3, 2020
1 parent 4f9be4c commit 512cca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glsl2spv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,9 @@ extern "C"

shaderStrings[0] = shader_source;
shader.setStrings(shaderStrings, 1);
shader.setEnvClient(glslang::EShClientVulkan, glslang::EShTargetVulkan_1_2);

if (!shader.parse(&Resources, 100, false, messages))
if (!shader.parse(&Resources, 100, ECoreProfile, false, false, messages))
return(new SPVData(shader.getInfoLog(),shader.getInfoDebugLog()));

program.addShader(&shader);
Expand Down

0 comments on commit 512cca5

Please sign in to comment.