DDS Bit Flag Values

A number of fields make use of the standard DirectDraw bit flags. Those that are used for DirectDraw surface (DDS) files are included here for reference.

The dwFlags member of the original DDSURFACEDESC2 structure can be set to one or more of the following values:

Flag Value
DDSD_CAPS 0x00000001
DDSD_HEIGHT 0x00000002
DDSD_WIDTH 0x00000004
DDSD_PITCH 0x00000008
DDSD_PIXELFORMAT 0x00001000
DDSD_MIPMAPCOUNT 0x00020000
DDSD_LINEARSIZE 0x00080000
DDSD_DEPTH 0x00800000

The ddpfPixelFormat member of the DDSURFACEDESC2 structure can be set to one or more of the following values:

Flag Value
DDPF_ALPHAPIXELS 0x00000001
DDPF_FOURCC 0x00000004
DDPF_RGB 0x00000040

The dwCaps1 member of the DDSCAPS2 structure can be set to one or more of the following values:

Flag Value
DDSCAPS_COMPLEX 0x00000008
DDSCAPS_TEXTURE 0x00001000
DDSCAPS_MIPMAP 0x00400000

The dwCaps2 member of the DDSCAPS2 structure can be set to one or more of the following values:

Flag Value
DDSCAPS2_CUBEMAP 0x00000200
DDSCAPS2_CUBEMAP_POSITIVEX 0x00000400
DDSCAPS2_CUBEMAP_NEGATIVEX 0x00000800
DDSCAPS2_CUBEMAP_POSITIVEY 0x00001000
DDSCAPS2_CUBEMAP_NEGATIVEY 0x00002000
DDSCAPS2_CUBEMAP_POSITIVEZ 0x00004000
DDSCAPS2_CUBEMAP_NEGATIVEZ 0x00008000
DDSCAPS2_VOLUME 0x00200000