Instance Property

precision

The number of bits of numeric precision available for each feature channel.

Declaration

@property(readonly, nonatomic) NSUInteger precision;

Discussion

This is precision, not size (float is 24 bits, not 32; half-precision floating-point is 11 bits, not 16; Snorm pixel formats have one less bit of precision for the sign bit, etc.). For formats like MTLPixelFormatB5G6R5Unorm, this value is the precision of the most precise channel (which is 6 in this case). When this information is unavailable, typically for compressed formats, this value is 0.

See Also

Properties

device

The device on which the image will be used.

width

The formal width of the image, in pixels.

height

The formal height of the image, in pixels.

featureChannels

The number of feature channels per pixel.

numberOfImages

The number of images for batch processing.

textureType

The type of the underlying texture, typically MTLTextureType2D or MTLTextureType2DArray.

MTLTextureType

The dimension of each image, including whether multiple images are arranged into an array or a cube.

pixelFormat

The pixel format of the underlying texture.

MTLPixelFormat

The data formats that describe the organization and characteristics of individual pixels in a texture.

usage

The intended usage of the underlying texture.

MTLTextureUsage

An enumeration for the various options that determine how you can use a texture.

pixelSize

The number of bytes from the first byte of one pixel to the first byte of the next pixel, in storage order. (Includes padding.)

texture

The underlying texture.

MTLTexture

A resource that holds formatted image data.

label

A string to help identify this object.