hatchmoment. scored by care · not by stars

mach-shader

Mach shader math library mapping functions to SPIR-V GLSL.std.450 ops

This library supplies shader‑side math primitives for the Mach language, each tied to a specific SPIR‑V instruction via #[spirv_op] decorators. It lets developers write concise shader code while ensuring the compiler emits the exact GPU instruction, avoiding extra function calls. Ideal for graphics programmers targeting Vulkan/SPIR‑V who need precise control over shader math without writing boilerplate. Compared to generic math libraries, it integrates tightly with Mach’s compilation pipeline, offering early link‑time errors if used on unsupported targets.

View on GitHub →

briar-systems/mach-shader