mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-11 19:45:28 +00:00
20 lines
311 B
Plaintext
20 lines
311 B
Plaintext
#pragma clang diagnostic ignored "-Wmissing-prototypes"
|
|
|
|
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
static inline __attribute__((always_inline))
|
|
void myfunc(threadgroup int (&foo)[1337])
|
|
{
|
|
foo[0] = 13;
|
|
}
|
|
|
|
kernel void main0()
|
|
{
|
|
threadgroup int foo[1337];
|
|
myfunc(foo);
|
|
}
|
|
|