TextureFormat

Textures can store their pixels in different formats. The set of color channels and the number of bits stored for each channel can differ, allowing Textures to optimize their storage for certain kinds of image formats or rendering techniques.

ValueDescription
rgbEach pixel is 24 bits, or 8 bits for each channel.
rgbaEach pixel is 32 bits, or 8 bits for each channel (including alpha).
rgba4An rgba format where the colors occupy 4 bits instead of the usual 8.
rgba16fEach pixel is 64 bits. Each channel is a 16 bit floating point number.
rgba32fEach pixel is 128 bits. Each channel is a 32 bit floating point number.
r16fA 16-bit floating point format with a single color channel.
r32fA 32-bit floating point format with a single color channel.
rg16fA 16-bit floating point format with two color channels.
rg32fA 32-bit floating point format with two color channels.
rgb5a1A 16 bit format with 5-bit color channels and a single alpha bit.
rgb10a2A 32 bit format with 10-bit color channels and two alpha bits.
rg11b10fEach pixel is 32 bits, and packs three color channels into 10 or 11 bits each.
d16A 16 bit depth buffer.
d32fA 32 bit floating point depth buffer.
d24s8A depth buffer with 24 bits for depth and 8 bits for stencil.

See also