20 lines
360 B
WebGPU Shading Language
20 lines
360 B
WebGPU Shading Language
intrinsics/ignore/uniform_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
|
ignore(u);
|
|
^^^^^^
|
|
|
|
intrinsics/ignore/uniform_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
|
ignore(u.i);
|
|
^^^^^^
|
|
|
|
struct S {
|
|
i : i32;
|
|
}
|
|
|
|
@binding(0) @group(0) var<uniform> u : S;
|
|
|
|
@stage(compute) @workgroup_size(1)
|
|
fn main() {
|
|
ignore(u);
|
|
ignore(u.i);
|
|
}
|