Skip to main content

Module naga_bridge

Module naga_bridge 

Source
Expand description

Naga bridge: WGSL → naga IR → GLSL ES 300 compilation. Naga bridge: WGSL source → naga IR → GLSL ES 300 compilation.

Structs§

CompiledGlsl
Compiled GLSL ES 300 shader output.
Std140Member
A std140-aligned uniform buffer member.

Enums§

CompileError
GLSL ES 300 compilation error.

Functions§

compile_all_entry_points
Compile all entry points in a WGSL module to GLSL ES 300.
compile_wgsl_to_glsl_es300
Compile a WGSL shader to GLSL ES 300 for a specific entry point and stage.
std140_layout
Generate a std140-aligned uniform buffer layout from a WGSL struct.