mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
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,
|
"--profile", profile,
|
||||||
progFlag, tmppath,
|
progFlag, tmppath,
|
||||||
)
|
)
|
||||||
|
if lang == "hlsl" {
|
||||||
|
cmd.Args = append(cmd.Args, "--defines=HLSL")
|
||||||
|
}
|
||||||
if flattenUBOs {
|
if flattenUBOs {
|
||||||
cmd.Args = append(cmd.Args, "--flatten-ubos")
|
cmd.Args = append(cmd.Args, "--flatten-ubos")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user