mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 12:15:43 +00:00
Change-Id: Ice1b07c748bc6502a51b29690dfc00466a684c12 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/57461 Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com>
19 lines
318 B
HLSL
19 lines
318 B
HLSL
RWByteAddressBuffer sb_rw : register(u0, space0);
|
|
|
|
void atomicAnd_85a8d9() {
|
|
uint atomic_result = 0u;
|
|
sb_rw.InterlockedAnd(0u, 1u, atomic_result);
|
|
uint res = atomic_result;
|
|
}
|
|
|
|
void fragment_main() {
|
|
atomicAnd_85a8d9();
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void compute_main() {
|
|
atomicAnd_85a8d9();
|
|
return;
|
|
}
|