enum CP_FLAGS
{
CP_FLAGS_NONE = 0x0,
CP_FLAGS_LEGACY_DWORD = 0x1,
CP_FLAGS_24BPP = 0x10000,
CP_FLAGS_16BPP = 0x20000,
CP_FLAGS_8BPP = 0x40000
};
| Constant | Description |
|---|---|
| CP_FLAGS_NONE | Default. |
| CP_FLAGS_LEGACY_DWORD | Used for some legacy Direct3D 8 era DDS files, particularly 24bpp files, that used a DWORD alignment instead of BYTE. |
| CP_FLAGS_24BPP | Used for computing pitch of Direct3D 9 era 24bpp DDS files (which cannot be indicated by a DXGI_FORMAT). |
| CP_FLAGS_16BPP | Used for computing pitch of 16bpp DDS files (which requires DXGI 1.2 headers to define all possible combinations, so we use the flag here instead). |
| CP_FLAGS_8BPP | Used for computing pitch of 8bpp DDS files. |
Header: Declared in directxtex.h.