On iPhone, how can I save MPSImage to a file?
Save MPSImage to a file
Add a Comment
On iPhone, how can I save MPSImage to a file?
use this API getBytes(_:bytesPerRow:bytesPerImage:from:mipmapLevel:slice:) with MPSImage.texture
https://developer.apple.com/documentation/metal/mtltexture/1516318-getbytes
then write bytes to file