The format of a pixel is defined byspecifying a member of the D3DFORMATenumerated type. Some formats are:
D3DFMT_R8G8B8—Specifies a 24-bitpixel format where, starting
from the leftmost bit, 8 bits areallocated for red, 8 bits are allocated for green, and 8 bits are allocated forblue
D3DFMT_X8R8G8B8—Specifies a 32-bitpixel format where, starting from the leftmost bit, 8 bits are not used, 8 bitsare allocated for
red, 8 bits are allocated for green,and 8 bits are allocated for blue
D3DFMT_A8R8G8B8—Specifies a 32-bitpixel format where, starting from the leftmost bit, 8 bits are allocated foralpha, 8 bits are
allocated for red, 8 bits are allocatedfor green, and 8 bits are allocated for blue
D3DFMT_A16B16G16R16F—Specifies a 64-bit,floating-point pixel
format. Starting from the leftmost bit,16 bits are allocated for
alpha, 16 bits are allocated for blue,16 bits are allocated for green,
and 16 bits are allocated for red.
D3DFMT_A32B32G32R32F—Specifies a 128-bit, floating-point
pixel format. Starting from the leftmost bit, 32 bits are allocated for
alpha, 32 bits are allocated for blue, 32 bits are allocated for green,
and 32 bits are allocated for red.