Skip to main content

Module ring_kernel

Module ring_kernel 

Source
Expand description

Ring kernel generation for WGSL.

Generates WGSL compute shaders for ring kernel message processing. Note: WebGPU does not support true persistent kernels, so ring kernels are emulated using host-driven dispatch loops.

Structs§

RingKernelConfig
Configuration for ring kernel generation.

Functions§

generate_control_block_struct
Generate the WGSL ControlBlock struct definition.
generate_ring_kernel_bindings
Generate standard ring kernel bindings.
generate_ring_kernel_preamble
Generate the ring kernel preamble (activation/termination checks).
generate_u64_helpers
Generate the 64-bit helper functions.