Expand description
Shader translation between GLSL, WGSL, SPIRV (text), HLSL, and MSL. Includes reflection (extracting bindings, inputs, outputs) and validation.
Structs§
- Reflected
Binding - A reflected binding.
- Shader
Error - A located shader error / warning.
- Shader
Reflection - Reflected information about a shader module.
- Translate
Error - Translation error.
Enums§
- Glsl
Token - Severity
- Severity of a shader diagnostic.
- Shader
Language - Wgsl
Token
Functions§
- glsl_
to_ spirv_ text - Produce a SPIR-V text representation from GLSL source. This is a simplified textual output, not actual binary SPIR-V.
- glsl_
to_ wgsl - Translate a GLSL shader to WGSL.
- reflect_
glsl - Reflect a GLSL shader.
- reflect_
wgsl - Reflect a WGSL shader.
- validate_
shader - Validate a shader source in the given language.
- wgsl_
to_ glsl - Translate a simple WGSL shader back to GLSL 330 core.