Renderer.h 592 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // Renderer.h
  3. // LenzCameraNativeModuleForRN
  4. //
  5. // Created by 王昭威 on 2023/1/26.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <Metal/Metal.h>
  9. #import <MetalKit/MetalKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @class CameraTextureRenderPass;
  12. @interface Renderer : NSObject
  13. @property (nonatomic, strong, readonly) id<MTLDevice> device;
  14. @property (nonatomic, strong, readonly) CameraTextureRenderPass* cameraPass;
  15. + (instancetype)shared;
  16. - (void)drawInMTKView:(MTKView *)view;
  17. - (void)mtkView:(MTKView *)view drawableSizeWillChange:(CGSize)size;
  18. - (void)setup;
  19. @end
  20. NS_ASSUME_NONNULL_END