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

8 lines
110 B
WebGPU Shading Language

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