diff options
| author | hachem <im@hachem.wtf> | 2026-08-19 02:02:20 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-19 02:02:20 +0200 |
| commit | f7e05555fb4ff6d8e51bdb5734db4dab1841d593 (patch) | |
| tree | 353d350b19da7b84ca11e5801d33a921407a963e /premake5.lua | |
| parent | 5c5fc10d8938fd2da1922f01c638d42e70eb1ab1 (diff) | |
[feat]: migrate to slang from glsl
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 8729d3f..88eb729 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", |
