mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 11:45:54 +00:00
Fixed: tint:1474 Change-Id: I462ae7bdb17a394b0a4c185fc815fe9727044555 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105963 Commit-Queue: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
13 lines
414 B
WebGPU Shading Language
13 lines
414 B
WebGPU Shading Language
// Example taken from https://github.com/gpuweb/gpuweb/pull/2622
|
|
@group(0) @binding(0) var<storage, read_write> non_uniform_value : i32;
|
|
|
|
@compute @workgroup_size(1,1,1)
|
|
fn main() {
|
|
return;
|
|
let non_uniform_cond = non_uniform_value == 0;
|
|
if (non_uniform_cond) {
|
|
workgroupBarrier(); // valid, unreachable code does not contribute
|
|
// to the uniformity analysis
|
|
}
|
|
}
|