CameraTextureRenderPass.h 579 B

123456789101112131415161718192021222324
  1. //
  2. // CameraTextureRenderPass.h
  3. // LenzCameraNativeModuleForRN
  4. //
  5. // Created by 王昭威 on 2023/1/26.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <MetalKit/MetalKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class MTKView;
  11. @interface CameraTextureRenderPass : NSObject
  12. @property (nonatomic, strong, nullable) id<MTLTexture> texture;
  13. //- (id<MTLTexture>)makeTextureWith: (CMSampleBufferRef)sampleBuffer;
  14. - (void)mtkView:(MTKView *)view drawableSizeWillChange:(CGSize)size;
  15. - (void)renderIn:(MTKView *)view withCommandBuffer: (id<MTLCommandBuffer>)cmdBuf;
  16. @end
  17. NS_ASSUME_NONNULL_END