A cross-platform Zig demo showcasing GPU rendering with SDL3, SIMD math, and SPIR‑V shaders.
- Cross‑Platform Window & GPU Context: Uses SDL3 (via
zig-sdl3) to create windows and GPU devices. - SIMD‑Optimized Math: Uses
zmathfor fast vector and matrix operations. - Texture Loading: Uses
zstbito decode textures (PNG, JPEG, HDR). - Shader Pipeline: Compiles GLSL to SPIR‑V at build time using
glslc. - Frame Rate Control:
FpsManager.zigfor accurate timing. - Single‑Command Build & Run:
zig build run.
- Zig ≥ 0.14.0
- Vulkan SDK (provides
glslc) - C Compiler Toolchain
- Git
git clone https://github.com/stark26583/Zig-SDL3-GPU-Programming.git
cd Zig-SDL3-GPU-Programming
zig build <name>Contributions welcome! Open issues or PRs. Please follow existing code style and include documentation.
Released under the MIT License.