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