Encodes a command to copy image data from a slice of a source texture into a slice of a destination texture.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The source texture for the copy operation. The value must not be a
The slice of the source texture.
The mipmap level of the source texture.
The origin of the portion of the source texture where the copying starts.
The number of source pixels, in width, height, and depth, to copy to the destination texture. When you copy between 1D textures, height and depth must be
1. When you copy between 2D textures, depth must be
The destination texture for the copy operation. The value must not be a
The slice of the destination texture.
The mipmap level of the destination texture.
The destination texture origin where the copying starts.
source together to select a single image of the source texture. Use
destination to select a single image of the destination texture.
The source and destination textures must have the same pixel format and the same sample count. For compressed pixel formats, align the copy region to that pixel format's block size. Overlapping regions within a single texture produce undefined results.
This method cannot be used with a subregion of a texture that has a PVRTC pixel format. The method can be used if you are copying an entire texture with a PVRTC pixel format.