SPIRV-Cross/reference/opt/shaders-msl/comp/copy-array-of-arrays.comp
2018-09-12 09:54:55 +02:00

16 lines
165 B
Plaintext

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct BUF
{
int a;
};
kernel void main0(device BUF& o [[buffer(0)]])
{
o.a = 4;
}