Enable shader optimization

This commit is contained in:
SirLynix
2022-06-28 08:57:33 +02:00
parent cefa620b20
commit 622b89b0f5
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ rule("nzsl.compile.shaders")
-- add commands
batchcmds:show_progress(opt.progress, "${color.build.object}compiling shader %s", shaderfile)
local argv = {"--compile=nzslb-header", "--partial"}
local argv = { "--compile=nzslb-header", "--partial", "--optimize" }
-- handle --log-format
local kind = target:data("plugin.project.kind") or ""