dawn-cmake/test/tint/bug/tint/1086.wgsl

15 lines
119 B
WebGPU Shading Language
Raw Normal View History

var<private> v : f32;
fn x(p : ptr<private, f32>) {
(*p) = 0.0;
}
fn g() {
x(&v);
}
@fragment
fn f() {
g();
}