Temp fix for NZSL update

This commit is contained in:
SirLynix
2022-06-15 20:26:14 +02:00
parent b10e0a7408
commit 8e8bee7037
8 changed files with 19 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ task("compile-shaders")
print("Compiling shaders...")
for _, filepath in pairs(os.files("src/Nazara/*/Resources/**.nzsl")) do
print(" - Compiling " .. filepath)
local argv = {"--compile=nzslb", "--partial", "--header-file", filepath }
local argv = {"--compile=nzslb-header", "--partial", filepath }
if option.get("measure") then
table.insert(argv, "--measure")
end

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", "--partial", "--header-file"}
local argv = {"--compile=nzslb-header", "--partial"}
-- handle --log-format
local kind = target:data("plugin.project.kind") or ""