An encoder that encodes memory copying, filtering, and fill commands.
Mac Catalyst 13.0+
The MTLBlitCommandEncoder protocol defines the interface for objects that can encode resource-copying commands into a command buffer. Use these commands to manage the contents of textures and buffers.
Data copying operations may be necessary for image processing and texture effects, such as blurring or reflections. You also use these operators to access image data that is rendered offscreen.
Your app does not define classes that implement this protocol. To create a MTLBlitCommandEncoder object, call the blitCommandEncoder method of the MTLCommandBuffer object into which you want to encode blit commands. Next, call methods on the MTLBlitCommandEncoder object to enqueue blit commands. Finally, call endEncoding to finish the encoding process.