I would like to render 3D graphics generated by Metal (Apple shading language) into a video file at specified resolution and FPS, without showing it on the screen. The render can happen at slower than real time, so I should be allowed to compute each frame longer than it would be for real time display. If this is possible, how can I do it? Iām currently using MTKView to render into a screen.
Asked
Active
Viewed 204 times
1
-
Use `AVAssetWriter` to write a video, convert Metal textures to `CVPixelBuffer`, see this question: https://stackoverflow.com/questions/44842661/how-to-convert-a-mtltexture-to-cvpixelbuffer-to-write-into-an-avassetwriter ā Itai May 01 '21 at 14:43
-
@Itai thanks! Could have posted that as an answer :) ā akuz May 01 '21 at 19:41