UnityMetalSupport.h 430 B

12345678910111213
  1. #pragma once
  2. // we are still allowing to build with older sdk and run on simulator without metal support (pre MacOS 10.15)
  3. // it is expected to substitute Metal.h so we assume this is used only with objc
  4. #ifdef __cplusplus
  5. extern "C" typedef MTLDeviceRef (*MTLCreateSystemDefaultDeviceFunc)();
  6. #else
  7. typedef MTLDeviceRef (*MTLCreateSystemDefaultDeviceFunc)();
  8. #endif
  9. #import <Metal/Metal.h>
  10. #import <QuartzCore/CAMetalLayer.h>