From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:DDS (DirectDraw Surface)" |
|---|
| claim | "When ddspf is FourCC 'DX10', a 20-byte DDS_HEADER_DXT10 follows the header at file offset 0x80, so image data starts at 0x94." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "DDS files whose pixel format fourCC is DX10" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "DDS_HEADER_DXT10" |
|---|
| size | "0x14" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "dxgiFormat" |
|---|
| notes | "DXGI_FORMAT value" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "resourceDimension" |
|---|
| notes | "2 = 1D, 3 = 2D, 4 = 3D; 0 accepted as 2D only in permissive mode" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "miscFlag" |
|---|
| notes | "0x4 = DDS_RESOURCE_MISC_TEXTURECUBE" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "arraySize" |
|---|
| notes | "0 is read as 1; for a cube it counts cubemaps, 6 faces each" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "miscFlags2" |
|---|
| notes | "low 3 bits = alpha mode: 0 unknown, 1 straight, 2 premultiplied, 3 opaque, 4 custom" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "DDS_HEADER_DXT10, resource dimension, misc flag and alpha mode enums, static_assert size 20" |
|---|
| repo | "https://github.com/microsoft/DirectXTex" |
|---|
| commit | "4234f77df9c6c8bb2880607b82d5d597b54d1fa9" |
|---|
| path | "DirectXTex/DDS.h" |
|---|
| lines | "232-258, 280-297" |
|---|
|
| type | "source" |
|---|
| detail | "DecodeDDSHeader: DX10 extension handling of dimension, arraySize, cube" |
|---|
| repo | "https://github.com/microsoft/DirectXTex" |
|---|
| commit | "4234f77df9c6c8bb2880607b82d5d597b54d1fa9" |
|---|
| path | "DirectXTex/DirectXTexDDS.cpp" |
|---|
| lines | "376-480" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "DDS_HEADER_DXT10" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:04:28.292Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:38:06.108Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read DDS_HEADER_DXT10 and enums in DDS.h at the cited commit: five 32-bit members, static_assert size 20; 4 + 124 + 20 = 0x94 for DX10 data start; resource dimension 2/3/4, TEXTURECUBE 0x4, alpha mode mask 0x7 with values 0-4." |
|---|
|
|
|---|