kill-ios-app/Classes/Unity/UnityMetalSupport.h

14 lines
430 B
C
Raw Permalink Normal View History

2026-06-23 09:54:30 +08:00
#pragma once
// we are still allowing to build with older sdk and run on simulator without metal support (pre MacOS 10.15)
// it is expected to substitute Metal.h so we assume this is used only with objc
#ifdef __cplusplus
extern "C" typedef MTLDeviceRef (*MTLCreateSystemDefaultDeviceFunc)();
#else
typedef MTLDeviceRef (*MTLCreateSystemDefaultDeviceFunc)();
#endif
#import <Metal/Metal.h>
#import <QuartzCore/CAMetalLayer.h>