SPIRV-Cross/reference/shaders-msl/comp/functions.comp

20 lines
311 B
Plaintext
Raw Normal View History

#pragma clang diagnostic ignored "-Wmissing-prototypes"
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
2019-09-17 19:11:19 +00:00
static inline __attribute__((always_inline))
void myfunc(threadgroup int (&foo)[1337])
{
foo[0] = 13;
}
kernel void main0()
{
threadgroup int foo[1337];
myfunc(foo);
}