Native SDL3 editor written in Odin with a piece-table buffer core, backed by a Kotlin/JVM daemon speaking newline-delimited JSON over localhost TCP for Gradle import, Kotlin/Java diagnostics, and heuristic completion/hover/definition/references/rename. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
20 lines
659 B
Bash
Executable file
20 lines
659 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
SRC="$ROOT/client/odin/shaders"
|
|
OUT="$SRC/compiled"
|
|
|
|
if ! command -v glslc >/dev/null 2>&1; then
|
|
printf 'error: glslc not found. Install shaderc/glslc. On Fedora: sudo dnf install glslc\n' >&2
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p "$OUT"
|
|
|
|
glslc -fshader-stage=vert "$SRC/rect.vert.glsl" -o "$OUT/rect.vert.spv"
|
|
glslc -fshader-stage=frag "$SRC/rect.frag.glsl" -o "$OUT/rect.frag.spv"
|
|
glslc -fshader-stage=vert "$SRC/text.vert.glsl" -o "$OUT/text.vert.spv"
|
|
glslc -fshader-stage=frag "$SRC/text.frag.glsl" -o "$OUT/text.frag.spv"
|
|
|
|
printf 'compiled SDL3 GPU shaders to %s\n' "$OUT"
|