ui

module pkg::alloy::gpu::shader::compilersource

The shader compiler: checks a WGSL module's syntax tree and writes it as a SPIR-V 1.3 module for Vulkan 1.1, which the CPU rasterizer runs too. Every entry point (@vertex, @fragment, @compute) becomes a SPIR-V entry function that reads the stage's inputs from Input variables, calls the WGSL function, and writes its result to Output variables. Locals declared with var are Function variables, let values are SSA ids. The first error stops it.