forked from joejulian/gio
internal/cmd/convertshaders: #define HLSL when compiling for HLSL
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user