Microsoft DirectX 8.1 (Visual Basic)

DDS Bit Flag Values

A number of fields make use of the standard Microsoft® DirectDraw® bit flags. Those that are used for 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.

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

FlagValue
DDSD_CAPS0x00000001
DDSD_HEIGHT0x00000002
DDSD_WIDTH0x00000004
DDSD_PITCH0x00000008
DDSD_PIXELFORMAT0x00001000
DDSD_MIPMAPCOUNT0x00020000
DDSD_LINEARSIZE0x00080000
DDSD_DEPTH0x00800000
FlagValue
DDPF_ALPHAPIXELS0x00000001
DDPF_FOURCC0x00000004
DDPF_RGB0x00000040

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

FlagValue
DDSCAPS_COMPLEX0x00000008
DDSCAPS_TEXTURE0x00001000
DDSCAPS_MIPMAP0x00400000

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

FlagValue
DDSCAPS2_CUBEMAP0x00000200
DDSCAPS2_CUBEMAP_POSITIVEX0x00000400
DDSCAPS2_CUBEMAP_NEGATIVEX0x00000800
DDSCAPS2_CUBEMAP_POSITIVEY0x00001000
DDSCAPS2_CUBEMAP_NEGATIVEY0x00002000
DDSCAPS2_CUBEMAP_POSITIVEZ0x00004000
DDSCAPS2_CUBEMAP_NEGATIVEZ0x00008000
DDSCAPS2_VOLUME0x00200000