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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user