I'm working on a project where I'm using Metal to draw an overlay on top of live video. After getting everything up and running I'm running into issues with the output. Please see linked video for an example. This is just with drawing the CMSamplebuffer into a Metal Texture and then back into a CVPixelbuffer and writing to file. Very new to Metal in general and having a hard time narrowing down where the problem lies.
As for process, I'm rendering the sample buffer into an offscreen texture using drawPrimitives of a MTLCommandEncoder. Happy to provide more information as need.
As for process, I'm rendering the sample buffer into an offscreen texture using drawPrimitives of a MTLCommandEncoder. Happy to provide more information as need.
Code Block https://youtu.be/I9ZLxuZDyS8