summaryrefslogtreecommitdiffstats
path: root/Graphics/GLSLTools
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-17 06:37:13 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-17 06:37:13 +0000
commit5046c0ae9c0c951d47a3396791c71e94d193c1ce (patch)
tree7a379cf3fcf0697f4eb7a28b0d02ba89c090f212 /Graphics/GLSLTools
parentUpdated draw test command reference image to be quad instead of a triangle (diff)
downloadDiligentCore-5046c0ae9c0c951d47a3396791c71e94d193c1ce.tar.gz
DiligentCore-5046c0ae9c0c951d47a3396791c71e94d193c1ce.zip
Enabled draw command reference in Vulkan
Diffstat (limited to 'Graphics/GLSLTools')
-rw-r--r--Graphics/GLSLTools/src/SPIRVUtils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Graphics/GLSLTools/src/SPIRVUtils.cpp b/Graphics/GLSLTools/src/SPIRVUtils.cpp
index 42eb2c87..acc20b03 100644
--- a/Graphics/GLSLTools/src/SPIRVUtils.cpp
+++ b/Graphics/GLSLTools/src/SPIRVUtils.cpp
@@ -338,8 +338,9 @@ static std::vector<unsigned int> CompileShaderInternal(glslang::TShader&
IDataBlob** ppCompilerOutput)
{
Shader.setAutoMapBindings(true);
- TBuiltInResource Resources = InitResources();
- auto ParseResult = pIncluder != nullptr ?
+ TBuiltInResource Resources = InitResources();
+
+ auto ParseResult = pIncluder != nullptr ?
Shader.parse(&Resources, 100, false, messages, *pIncluder) :
Shader.parse(&Resources, 100, false, messages);
if (!ParseResult)