dawn-cmake/test/tint/ptr_ref/store/global/i32.wgsl

8 lines
126 B
WebGPU Shading Language

var<private> I : i32;
@stage(compute) @workgroup_size(1)
fn main() {
I = 123; // constant
I = 100 + 20 + 3; // dynamic
}