Yotsuba Shader
Documentation

Framework and compiler

Yotsuba Shader

Write shaders in C# with familiar attributes, and compile them to SPIR-V through a shared intermediate representation.

Overview#

Yotsuba Shader is a shader framework and compiler for C#. Your team writes shaders using the types, structures and libraries of its own project, described with attributes. The compiler interprets their interfaces and stages, lowers them to a shared intermediate representation, and generates output for the selected backend.

The syntax you write with does not determine the output target. HLSL, GLSL, MSL, SPIR-V and WGSL provide equivalent authoring vocabularies; choose the one your team knows best.

Topics#

Start here#

Stages and interfaces#

Resources and types#

In your game#

Compilation#

Attribute reference#

About Yotsuba Shader#

Copyright © 2026 Yotsuba Shader contributors · Licensing · GitHub