mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 08:36:08 +00:00
Common logic between the HLSL, WGSL and MSL writers has been moved into the TextGenerator base class. Fixed: tint:892 Change-Id: I0f469516947fe64817ce6251e436da74e5e176e8 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56068 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: James Price <jrprice@google.com>
22 lines
430 B
Plaintext
22 lines
430 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct SB_RW {
|
|
/* 0x0000 */ atomic_int arg_0;
|
|
};
|
|
|
|
void atomicLoad_0806ad(device SB_RW& sb_rw) {
|
|
int res = atomic_load_explicit(&(sb_rw.arg_0), memory_order_relaxed);
|
|
}
|
|
|
|
fragment void fragment_main(device SB_RW& sb_rw [[buffer(0)]]) {
|
|
atomicLoad_0806ad(sb_rw);
|
|
return;
|
|
}
|
|
|
|
kernel void compute_main(device SB_RW& sb_rw [[buffer(0)]]) {
|
|
atomicLoad_0806ad(sb_rw);
|
|
return;
|
|
}
|
|
|