textureCubeDescriptor(pixelFormat:size:mipmapped:)
Creates a texture descriptor object for a cube texture.
Declaration
class func textureCubeDescriptor(pixelFormat: MTLPixelFormat, size: Int, mipmapped: Bool) -> MTLTextureDescriptorParameters
- pixelFormat:
The format describing how every pixel on the texture image is stored. The default value is Rgba8unorm.
- size:
The width and height of each slice of the cube texture. The value needs to be greater than or equal to
1. - mipmapped:
A Boolean indicating whether the resulting image should be mipmapped. If True, then the Mipmaplevelcount property in the returned descriptor is computed from
widthandheight. If False, then Mipmaplevelcount is1.
Return Value
A pointer to a texture descriptor object for a cube texture.
Discussion
For a cube texture, the property values describe one slice, which is any one of its six sides. Each slice is a square.