mip(slices:)
Specifies a single mipmap level of a 2D or 3D texture resource that slices provide.
Declaration
static func mip(slices: [TextureResource.Contents.Slice]) -> TextureResource.Contents.MipmapLevelParameters
- slices:
The source slices. A 2D array texture requires one slice per
arrayLength. A cube texture requires six slices, containing faces[+X, -X, +Y, -Y, +Z, -Z]. 2D and 3D textures need a single slice, and you can build theirMipmapLevelwithmip(buffer:offset:size:bytesPerRow:)ormip(data:bytesPerRow).