blob: 4f88df5136f44c07075e35f35260f181edb45257 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Create oneliners
extern "C" NSBundle* UnityGetMetalBundle() { return _MetalBundle; }
extern "C" MTLDeviceRef UnityGetMetalDevice() { return _MetalDevice; }
extern "C" MTLCommandQueueRef UnityGetMetalCommandQueue() { return ((UnityDisplaySurfaceMTL*)GetMainDisplaySurface())->commandQueue; }
extern "C" EAGLContext* UnityGetDataContextEAGL() { return _GlesContext; }
// Keep oneliners
extern "C" NSBundle* UnityGetMetalBundle() { return _MetalBundle; }
extern "C" MTLDeviceRef UnityGetMetalDevice() { return _MetalDevice; }
extern "C" MTLCommandQueueRef UnityGetMetalCommandQueue() { return ((UnityDisplaySurfaceMTL*)GetMainDisplaySurface())->commandQueue; }
extern "C" EAGLContext* UnityGetDataContextEAGL() { return _GlesContext; }
|