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

22 lines
312 B
Plaintext
Raw Normal View History

#pragma clang diagnostic ignored "-Wmissing-braces"
#pragma clang diagnostic ignored "-Wunused-variable"
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
}