XMake: Fix double-compilation of shaders and recompile shaders on nzsl update

Shaders were compiled twice because rule was added separately
This commit is contained in:
SirLynix
2023-08-12 12:13:22 +02:00
parent 689ea06fe1
commit 2f593dcde7
2 changed files with 1 additions and 12 deletions

View File

@@ -38,6 +38,7 @@ rule("nzsl.compile.shaders")
-- add deps
batchcmds:add_depfiles(shaderfile)
batchcmds:add_depvalues(nzsl:version())
batchcmds:set_depmtime(os.mtime(outputFile))
batchcmds:set_depcache(target:dependfile(outputFile))
end)