Contents

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.MipmapLevel

Parameters

  • 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 their MipmapLevel with mip(buffer:offset:size:bytesPerRow:) or mip(data:bytesPerRow).

See Also

Creating a texture mipmap level