☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
reference
/
opt
/
shaders-msl
/
comp
/
copy-array-of-arrays.comp
☽
☼
third_party/spirv-cross/reference/opt/shaders-msl/comp/copy-array-of-arrays.comp
code
plain
raw
Apache-2.0
2012-2021, The Android Open Source Project; 2015-2021, Google LLC; 2017, Romain Guy
debian/copyright
1
#include <metal_stdlib>
2
#include <simd/simd.h>
3
4
using namespace metal;
5
6
struct BUF
7
{
8
int a;
9
float b;
10
float c;
11
};
12
13
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
14
15
kernel void main0(device BUF& o [[buffer(0)]])
16
{
17
o.a = 4;
18
o.b = o.c;
19
}
20