When using glslc command line to build SPIR-V asm, add file extension

This commit is contained in:
baldurk
2020-04-08 14:51:48 +01:00
parent 3d29947367
commit 975f40db9c
+4
View File
@@ -354,6 +354,10 @@ std::vector<uint32_t> CompileShaderToSpv(const std::string &source_text, SPIRVTa
case ShaderStage::comp: command_line += " -fshader-stage=comp"; break;
}
}
else
{
strcat(infile, ".spvasm");
}
if(target == SPIRVTarget::opengl)
command_line += " --target-env=opengl";