Function emit_spirv
pub fn emit_spirv(
kernel: &KernelSpec,
schedule: Schedule,
) -> Result<GeneratedShader, ForgeError>Expand description
Emit a validated SPIR-V module for kernel/schedule.
The returned GeneratedShader::source holds the SPIR-V words as a
;-joined decimal string (see module docs); all other fields mirror the
WGSL record this was derived from, except source_hash, which is recomputed
over the SPIR-V word string so it identifies the actual emitted artifact.