2018-01-24 20:38:17 +00:00
|
|
|
#pragma clang diagnostic ignored "-Wmissing-prototypes"
|
|
|
|
|
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
2018-01-29 09:57:52 +00:00
|
|
|
void myfunc(threadgroup int (&foo)[1337])
|
2018-01-24 20:38:17 +00:00
|
|
|
{
|
|
|
|
foo[0] = 13;
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel void main0()
|
|
|
|
{
|
|
|
|
threadgroup int foo[1337];
|
|
|
|
myfunc(foo);
|
|
|
|
}
|
|
|
|
|