Files
RedHotRoast-ios/HybridCLRData/StrippedAOTDllsTempProj/iOS/Classes/Unity/UnityMetalSupport.h
T
2026-07-17 14:03:00 +08:00

14 lines
430 B
Objective-C

#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>