diff options
| author | hachem <im@hachem.wtf> | 2026-08-19 01:35:24 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-19 01:35:24 +0200 |
| commit | 643e27c962745850f1632e014168f836eeab740d (patch) | |
| tree | 740616a116f2266b3b66bdf1f78e14b4a6b6b1f6 /premake5.lua | |
| parent | 6253adaf4b762046f9a5c89a0ef67dc61fead689 (diff) | |
chore: add slang toolchain scripts
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua index 236347c..d0e17d3 100644 --- a/premake5.lua +++ b/premake5.lua @@ -369,6 +369,13 @@ project "Donut" "src/**.mm" } + -- Compile the Slang shaders to assets/shaders/generated/ before building. + -- Requires tools/slang (tools/fetch-slang.sh) and spirv-cross on PATH. + prebuildcommands + { + 'bash "%{wks.location}/tools/compile-shaders.sh"' + } + links { "Cocoa.framework", |
