From 5046c0ae9c0c951d47a3396791c71e94d193c1ce Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 16 Dec 2019 22:37:13 -0800 Subject: Enabled draw command reference in Vulkan --- Graphics/GLSLTools/src/SPIRVUtils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Graphics/GLSLTools') 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 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) -- cgit v1.2.3