hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/tools/fetch-slang.sh
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-22 06:33:59 +0200
committerhachem <im@hachem.wtf>2026-09-22 06:33:59 +0200
commit53fa01afb052fd64c99e87fd53c22654e796b64f (patch)
tree6294a1816fa98efccd8f699142daa28102a91c29 /tools/fetch-slang.sh
parentec2839ecbfc3f28b3f335489ae7611b60fba82c5 (diff)
chore: windows support in premake and the shader scripts
Diffstat (limited to 'tools/fetch-slang.sh')
-rwxr-xr-xtools/fetch-slang.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/fetch-slang.sh b/tools/fetch-slang.sh
index 5229bf7..d94a63b 100755
--- a/tools/fetch-slang.sh
+++ b/tools/fetch-slang.sh
@@ -16,6 +16,10 @@ case "$(uname -s)-$(uname -m)" in
Darwin-x86_64) ASSET="macos-x86_64" ;;
Linux-x86_64) ASSET="linux-x86_64" ;;
Linux-aarch64|Linux-arm64) ASSET="linux-aarch64" ;;
+ MINGW*|MSYS*|CYGWIN*)
+ # git bash on windows: the Vulkan SDK already ships slangc.exe and
+ # spirv-cross.exe, and compile-shaders.sh picks them up from $VULKAN_SDK/Bin
+ echo "fetch-slang: nothing to fetch on windows, the Vulkan SDK's slangc.exe is used"; exit 0 ;;
*) echo "fetch-slang: unsupported platform $(uname -s)-$(uname -m)"; exit 1 ;;
esac