internal/cmd/convertshaders: #define HLSL when compiling for HLSL

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-27 16:50:15 +01:00
parent c20c1ab96f
commit 1f117d8de0
+3
View File
@@ -356,6 +356,9 @@ func convertShader(tmp, glslcc, path, lang, profile string, args *shaderArgs, fl
"--profile", profile,
progFlag, tmppath,
)
if lang == "hlsl" {
cmd.Args = append(cmd.Args, "--defines=HLSL")
}
if flattenUBOs {
cmd.Args = append(cmd.Args, "--flatten-ubos")
}