1

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.

akuz
  • 607
  • 7
  • 14
  • 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

0 Answers0