MBMMetalViewProvider.h 440 B

12345678910111213141516171819202122
  1. #import <Foundation/Foundation.h>
  2. #import <MetalKit/MTKView.h>
  3. #import <Metal/MTLTexture.h>
  4. /**
  5. * Interface for providing MTKView to the map renderer.
  6. */
  7. @protocol MBMMetalViewProvider
  8. @optional
  9. - (MTKView *_Nullable)getMetalViewFor:(nullable id<MTLDevice>)metalDevice;
  10. @optional
  11. - (nullable id<MTLTexture>)getDrawableTexture;
  12. /// Deprecated, implementing this method has no effect
  13. - (CFTimeInterval)getTargetFrameTimestamp;
  14. @end