mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 18:14:18 +01:00
18 lines
340 B
Plaintext
18 lines
340 B
Plaintext
// language: metal1.1
|
|
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
constexpr constant bool Foo = true;
|
|
struct type2 {
|
|
float inner[10u];
|
|
};
|
|
|
|
kernel void main1(
|
|
threadgroup type2& wg
|
|
, threadgroup metal::atomic_uint& at
|
|
) {
|
|
wg.inner[3] = 1.0;
|
|
metal::atomic_store_explicit(&at, 2u, metal::memory_order_relaxed);
|
|
return;
|
|
}
|