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

19 lines
206 B
Plaintext
Raw Normal View History

2018-09-11 10:58:03 +00:00
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct BUF
{
int a;
float b;
float c;
2018-09-11 10:58:03 +00:00
};
kernel void main0(device BUF& o [[buffer(0)]])
{
o.a = 4;
o.b = o.c;
2018-09-11 10:58:03 +00:00
}