Contents

MTLPixelFormat.bgr10_xr

A 32-bit extended-range pixel format with three fixed-point components of 10-bit blue, 10-bit green, and 10-bit red.

Declaration

case bgr10_xr

Discussion

Pixel components are in blue, green, and red order, from least significant bit to most significant bit. Bits 30 and 31 are padding, and their value is 0.

[Image]

Components are linearly encoded in a transform from [0,2^10) to [-0.752941, 1.25098]. The formula used in this linear encoding is shader_float = (xr10_value - 384) / 510.0f.

To display wide color values on devices with wide color displays, set this pixel format on the colorPixelFormat property of an MTKView or the pixelFormat property of a CAMetalLayer.

See Also

Extended range and wide color pixel formats