Embed compiled SPIR-V shaders in the client binary with #load
The GPU renderer previously read .spv files from a cwd-relative path at runtime; when they were missing or the editor was launched from outside the repo root, it silently fell back to the SDL renderer, losing syntax highlighting. The shaders are now baked in at compile time, so the binary is self-contained. The compiled .spv files are committed (no longer gitignored) since they are required to build; regenerate with scripts/compile-shaders.sh after editing the GLSL sources. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
8b1723ce31
commit
8d85568713
8 changed files with 24 additions and 30 deletions
|
|
@ -76,13 +76,13 @@ Gradle workspace import records module source roots, test source roots, resource
|
|||
|
||||
Use `Ctrl+Shift+T` to toggle Gradle tasks in the right sidebar. Use Up/Down, PageUp/PageDown, Home/End, mouse wheel, or row clicks to select tasks, and Enter to run the selected task; the sidebar shows the loaded task count and reports started/finished/failed events, the final response, and recent stdout/stderr output.
|
||||
|
||||
Compile starter SDL3 GPU shaders with:
|
||||
The SDL3 GPU shaders are compiled to SPIR-V under `client/odin/shaders/compiled/` and embedded into the client binary at build time, so the editor has no runtime shader files to find. The compiled files are committed; after editing the GLSL sources, regenerate them with:
|
||||
|
||||
```sh
|
||||
scripts/compile-shaders.sh
|
||||
```
|
||||
|
||||
The script uses `glslc` from shaderc and emits Vulkan/SPIR-V files under `client/odin/shaders/compiled/`. On Fedora, install it with `sudo dnf install glslc`.
|
||||
The script uses `glslc` from shaderc. On Fedora, install it with `sudo dnf install glslc`.
|
||||
|
||||
Run autonomous opencode continuation loops with:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue