mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-14 09:06:11 +00:00
These were incorrectly abstract-int, instead of i32. Oops. Change-Id: Iafac4883ee431b04fb473392f545ae26436f8343 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106885 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
12 lines
215 B
WebGPU Shading Language
12 lines
215 B
WebGPU Shading Language
var<workgroup> arg_0 : atomic<i32>;
|
|
|
|
fn atomicExchange_e114ba() {
|
|
var arg_1 = 1i;
|
|
var res : i32 = atomicExchange(&(arg_0), arg_1);
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
atomicExchange_e114ba();
|
|
}
|