PixelFormat

PixelFormat enumeration

The pixel’s format used in texture unit.

public enum PixelFormat

Values

Name Value Description
Unknown 0 Unknown pixel format.
L8 1 8-bit pixel format, all bits luminance.
L16 2 16-bit pixel format, all bits luminance.
A8 3 8-bit pixel format, all bits alpha.
A4L4 4 8-bit pixel format, 4 bits alpha, 4 bits luminance.
BYTE_LA 5 2 byte pixel format, 1 byte luminance, 1 byte alpha
R5G6B5 6 16-bit pixel format, 5 bits red, 6 bits green, 5 bits blue.
B5G6R5 7 16-bit pixel format, 5 bits red, 6 bits green, 5 bits blue.
R3G3B2 8 8-bit pixel format, 2 bits blue, 3 bits green, 3 bits red.
A4R4G4B4 9 16-bit pixel format, 4 bits for alpha, red, green and blue.
A1R5G5B5 10 16-bit pixel format, 5 bits for blue, green, red and 1 for alpha.
R8G8B8 11 24-bit pixel format, 8 bits for red, green and blue.
B8G8R8 12 24-bit pixel format, 8 bits for blue, green and red.
A8R8G8B8 13 32-bit pixel format, 8 bits for alpha, red, green and blue.
A8B8G8R8 14 32-bit pixel format, 8 bits for blue, green, red and alpha.
B8G8R8A8 15 32-bit pixel format, 8 bits for blue, green, red and alpha.
R8G8B8A8 16 32-bit pixel format, 8 bits for red, green, blue and alpha.
X8R8G8B8 17 32-bit pixel format, 8 bits for red, 8 bits for green, 8 bits for blue like A8R8G8B8, but alpha will get discarded
X8B8G8R8 18 32-bit pixel format, 8 bits for blue, 8 bits for green, 8 bits for red like A8B8G8R8, but alpha will get discarded
A2R10G10B10 19 32-bit pixel format, 2 bits for alpha, 10 bits for red, green and blue.
A2B10G10R10 20 32-bit pixel format, 10 bits for blue, green and red, 2 bits for alpha.
DXT1 21 DDS (DirectDraw Surface) DXT1 format.
DXT2 22 DDS (DirectDraw Surface) DXT2 format.
DXT3 23 DDS (DirectDraw Surface) DXT3 format.
DXT4 24 DDS (DirectDraw Surface) DXT4 format.
DXT5 25 DDS (DirectDraw Surface) DXT5 format.
FLOAT16_R 26 16-bit pixel format, 16 bits (float) for red
FLOAT16_RGB 27 48-bit pixel format, 16 bits (float) for red, 16 bits (float) for green, 16 bits (float) for blue
FLOAT16_RGBA 28 64-bit pixel format, 16 bits (float) for red, 16 bits (float) for green, 16 bits (float) for blue, 16 bits (float) for alpha
FLOAT32_R 29 32-bit pixel format, 32 bits (float) for red
FLOAT32_RGB 30 96-bit pixel format, 32 bits (float) for red, 32 bits (float) for green, 32 bits (float) for blue
FLOAT32_RGBA 31 128-bit pixel format, 32 bits (float) for red, 32 bits (float) for green, 32 bits (float) for blue, 32 bits (float) for alpha
FLOAT16_GR 32 32-bit, 2-channel s10e5 floating point pixel format, 16-bit green, 16-bit red
FLOAT32_GR 33 64-bit, 2-channel floating point pixel format, 32-bit green, 32-bit red
DEPTH 34 Depth texture format.
SHORT_RGBA 35 64-bit pixel format, 16 bits for red, green, blue and alpha
SHORT_GR 36 32-bit pixel format, 16-bit green, 16-bit red
SHORT_RGB 37 48-bit pixel format, 16 bits for red, green and blue
R32_UINT 38 32-bit pixel format, 32 bits red (unsigned int).
R32G32_UINT 39 64-bit pixel format, 32 bits red (unsigned int), 32 bits blue (unsigned int).
R32G32B32A32_UINT 40 128-bit pixel format, 32 bits red (unsigned int), 32 bits blue (unsigned int), 32 bits green (unsigned int), 32 bits alpha (unsigned int).
R8 41 8-bit pixel format, all bits red.

See Also