mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 08:44:08 +00:00
28 lines
598 B
Plaintext
28 lines
598 B
Plaintext
// language: metal1.1
|
|
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
constexpr constant bool Foo_2 = true;
|
|
struct type_2 {
|
|
float inner[10u];
|
|
};
|
|
struct Foo {
|
|
metal::packed_float3 v3_;
|
|
float v1_;
|
|
};
|
|
|
|
kernel void main_(
|
|
threadgroup type_2& wg
|
|
, threadgroup metal::atomic_uint& at_1
|
|
, constant Foo& alignment [[user(fake0)]]
|
|
) {
|
|
float Foo_1 = 1.0;
|
|
bool at = true;
|
|
float _e7 = alignment.v1_;
|
|
wg.inner[3] = _e7;
|
|
float _e12 = metal::float3(alignment.v3_).x;
|
|
wg.inner[2] = _e12;
|
|
metal::atomic_store_explicit(&at_1, 2u, metal::memory_order_relaxed);
|
|
return;
|
|
}
|