Skip to main content

Module codegen

Module codegen 

Source
Expand description

Multi-dialect compute shader code generation.

Generates compute kernels in WGSL, MSL (Metal Shading Language), CUDA C, and plain C from the same expression graph. The expression syntax is nearly identical across dialects — only kernel boilerplate and a few edge cases (select, literal suffixes) differ.

Structs§

ComputeKernel
A generated compute kernel.

Enums§

Dialect
Target shader dialect.