SPIRV-Cross/reference/opt/shaders-msl/comp/copy-array-of-arrays.force-native-array.comp

21 lines
269 B
Plaintext

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct BUF
{
int a;
float b;
float c;
};
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
kernel void main0(device BUF& o [[buffer(0)]])
{
o.a = 4;
o.b = o.c;
}