ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Apache License 2.0
4.65k stars 491 forks source link

Request: support CVPixelBuffer based MTLTexture for iOS/macOS #227

Closed Michael-Lfx closed 2 years ago

Michael-Lfx commented 2 years ago

https://github.com/ConfettiFX/The-Forge/blob/6a16736d29c8093c7c033d6d8507048819f5836d/Common_3/Renderer/Metal/MetalRenderer.mm#L5164

Could you accept a CVPixelBuffer as pNativeHandle and then create CVMTLTexture internal? The goal here is use a user provided CVPixelBuffer instance for creating the-forge texture.

Why It's common on Apple platform to improve performance of Camera/VideoEncoder to use CVPixelBuffer/IOSurface-based texture for post-processing which avoid coping data from CPU to GPU.

wolfgangfengel commented 2 years ago

Hi @Michael-Lfx , thanks for contributing so many requests and bug reports. Would you be interested in joining our internal repository where we develop the framework?

Michael-Lfx commented 2 years ago

Thank you! That would be great. What rules should I follow?

wolfgangfengel commented 2 years ago

Can you send me a PM?

manas-kulkarni commented 2 years ago

Issue was fixed in one of the previous releases