Skip to main content

Module compiler

Module compiler 

Source
Expand description

WGSL compute shader compiler and WebGPU execution runtime.

Provides the AST-to-WGSL translation pass and the wgpu buffer dispatch logic for executing JIT compiled expressions on the GPU.

Structs§

CachedPipeline
Holds compiled GPU resources together to prevent recreation and layout mismatch overhead.
GpuExecutor
A high-performance WebGPU compute execution context with dynamic buffer pooling and pipeline caching.

Functions§

compile_to_wgsl
JIT compiles the given AST projection into a fully-functional WebGPU WGSL compute shader.