RTCMTLRenderer+Private.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2017 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #import <Metal/Metal.h>
  11. #import "RTCMTLRenderer.h"
  12. #define MTL_STRINGIFY(s) @ #s
  13. NS_ASSUME_NONNULL_BEGIN
  14. @interface RTCMTLRenderer (Private)
  15. - (nullable id<MTLDevice>)currentMetalDevice;
  16. - (NSString *)shaderSource;
  17. - (BOOL)setupTexturesForFrame:(nonnull RTC_OBJC_TYPE(RTCVideoFrame) *)frame;
  18. - (void)uploadTexturesToRenderEncoder:(id<MTLRenderCommandEncoder>)renderEncoder;
  19. - (void)getWidth:(nonnull int *)width
  20. height:(nonnull int *)height
  21. cropWidth:(nonnull int *)cropWidth
  22. cropHeight:(nonnull int *)cropHeight
  23. cropX:(nonnull int *)cropX
  24. cropY:(nonnull int *)cropY
  25. ofFrame:(nonnull RTC_OBJC_TYPE(RTCVideoFrame) *)frame;
  26. @end
  27. NS_ASSUME_NONNULL_END