An encoder that encodes memory copying, filtering, and fill commands.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
MTLBlit 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
MTLBlit object, call the
make method of the
MTLCommand object into which you want to encode blit commands. Next, call methods on the
MTLBlit object to enqueue blit commands. Finally, call
end to finish the encoding process.