aboutsummaryrefslogtreecommitdiff
path: root/Tools/fetch-slang.sh
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-20 02:59:57 +0200
committerhachem <im@hachem.wtf>2026-08-20 02:59:57 +0200
commitb0be47e54943bf45babac5bce6c2f6f0dc5cb4dc (patch)
tree8094e5710e753adbe5189aba206a791dd058e930 /Tools/fetch-slang.sh
parentcb404a0a18ad24d68c275fc1fa921a4f0325e578 (diff)
[chore]: delete dirs
Diffstat (limited to 'Tools/fetch-slang.sh')
-rwxr-xr-xTools/fetch-slang.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/Tools/fetch-slang.sh b/Tools/fetch-slang.sh
deleted file mode 100755
index 5229bf7..0000000
--- a/Tools/fetch-slang.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-#
-# Fetches the Slang shader-compiler toolchain into tools/slang (gitignored).
-# Slang is the single shader-authoring language for Donut; slangc cross-compiles
-# each assets/shaders/*.slang to GLSL (OpenGL), SPIR-V (Vulkan), and MSL (Metal).
-#
-# Re-run to (re)install. Pin the version here so builds are reproducible.
-set -euo pipefail
-
-VERSION="2026.14.1"
-ROOT="$(cd "$(dirname "$0")/.." && pwd)"
-DEST="$ROOT/tools/slang"
-
-case "$(uname -s)-$(uname -m)" in
- Darwin-arm64|Darwin-aarch64) ASSET="macos-aarch64" ;;
- Darwin-x86_64) ASSET="macos-x86_64" ;;
- Linux-x86_64) ASSET="linux-x86_64" ;;
- Linux-aarch64|Linux-arm64) ASSET="linux-aarch64" ;;
- *) echo "fetch-slang: unsupported platform $(uname -s)-$(uname -m)"; exit 1 ;;
-esac
-
-URL="https://github.com/shader-slang/slang/releases/download/v${VERSION}/slang-${VERSION}-${ASSET}.tar.gz"
-
-echo "fetch-slang: downloading Slang ${VERSION} (${ASSET})..."
-rm -rf "$DEST"
-mkdir -p "$DEST"
-curl -fsSL "$URL" | tar -xz -C "$DEST"
-
-"$DEST/bin/slangc" -v >/dev/null 2>&1 && echo "fetch-slang: installed to $DEST (slangc $("$DEST/bin/slangc" -v))"