From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:DDS (DirectDraw Surface)" |
|---|
| claim | "DDS_PIXELFORMAT is 32 bytes: size (32), flags, fourCC, RGBBitCount and four channel masks; flags & 4 (DDPF_FOURCC) means fourCC names the format." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "all DDS files" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "DDS_PIXELFORMAT" |
|---|
| size | "0x20" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "size" |
|---|
| notes | "must be 32 (0 and 24 accepted as known variants in permissive mode)" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "flags" |
|---|
| notes | "DDPF_ALPHAPIXELS 1, DDPF_ALPHA 2, DDPF_FOURCC 4, DDPF_PALETTEINDEXED8 0x20, DDPF_RGB 0x40, DDPF_LUMINANCE 0x20000, DDPF_BUMPLUMINANCE 0x40000, DDPF_BUMPDUDV 0x80000" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "fourCC" |
|---|
| notes | "e.g. DXT1, DXT5, ATI1, ATI2, BC4U, BC5U, DX10" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "RGBBitCount" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "RBitMask" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "GBitMask" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "BBitMask" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "ABitMask" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct DDS_PIXELFORMAT and DDPF_* defines" |
|---|
| repo | "https://github.com/microsoft/DirectXTex" |
|---|
| commit | "4234f77df9c6c8bb2880607b82d5d597b54d1fa9" |
|---|
| path | "DirectXTex/DDS.h" |
|---|
| lines | "30-53" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "DDS_PIXELFORMAT" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:04:28.215Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:38:06.240Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read struct DDS_PIXELFORMAT in DDS.h lines 30-40 and the DDPF defines at the cited commit: eight uint32 members (32 bytes, static_assert), flag values 1, 2, 4, 0x20, 0x40, 0x20000, 0x40000, 0x80000 as listed." |
|---|
|
|
|---|