v152 · webgpu · compute

WGSL shader builder

This demo uses real WebGPU feature detection and WGSL strings from the proposal. If WebGPU or subgroup-size-control is unavailable, it reports the fallback branch instead of pretending the feature ran.

Generate a subgroup-sized compute entry point

Choose a size and generate the WGSL.

code path

enable subgroups;
enable subgroup_size_control;
@compute @workgroup_size(64, 1, 1) @subgroup_size(32)

see also