Fix OpenGL SPIR-V compilation using external glslc in tests

This commit is contained in:
baldurk
2019-08-28 18:07:56 +01:00
parent f7b60f6d82
commit ab05d4cbc8
+3
View File
@@ -317,6 +317,9 @@ std::vector<uint32_t> CompileShaderToSpv(const std::string &source_text, SPIRVTa
case ShaderStage::comp: command_line += " -fshader-stage=comp"; break;
}
if(target == SPIRVTarget::opengl)
command_line += " --target-env=opengl";
char infile[MAX_PATH] = {};
char outfile[MAX_PATH] = {};
get_tmpnam(infile);