From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:DDS (DirectDraw Surface)" |
|---|
| claim | "DirectXTex maps DDS FourCCs without a DX10 header as: DXT1 BC1; DXT2/DXT3 BC2 (DXT2 premultiplied alpha); DXT4/DXT5 BC3 (DXT4 premultiplied); BC4U/ATI1 BC4_UNORM, BC4S BC4_SNORM; BC5U/ATI2/A2XY BC5_UNORM, BC5S BC5_SNORM; BC6H BC6H_UF16; BC7L and BC7\0 BC7_UNORM; A2D5, xGBR, RxBG, RBxG, xRBG, RGxB, xGxR, GXRB, GRXB, RXGB, BRGX swizzled DXT5 returned as BC3." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "legacy DDS files (no DX10 extension header)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "fourCC (not DX10) matched against the table when ddpf.flags has DDPF_FOURCC (other flag bits ignored), or when ddpf.size and flags are both 0 and fourCC is non-zero" |
|---|
| effect | "the FourCC selects the DXGI format; the rows listed in the claim are the block-compressed ones, the same table also maps R8G8_B8G8/G8R8_G8B8 and numeric FourCCs 36 and 110-116 to non-block formats" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "LegacyDDS table rows from DDSPF_DXT1 to the BC7 FourCCs" |
|---|
| repo | "https://github.com/microsoft/DirectXTex" |
|---|
| commit | "4234f77df9c6c8bb2880607b82d5d597b54d1fa9" |
|---|
| path | "DirectXTex/DirectXTexDDS.cpp" |
|---|
| lines | "63-94" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "FourCC to block format mapping" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:04:28.368Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:25:21.977Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read DirectXTexDDS.cpp at 4234f77 lines 55-140 (g_LegacyDDSMap) and GetDXGIFormat 185-305 in full, plus DDS.h BC4U/BC4S/BC5U/BC5S FourCC definitions: both lookup branches (size==0&&flags==0&&fourCC!=0, and DDPF_FOURCC ignoring other flag bits), rows as claimed, DXT2/DXT4 PMALPHA conv flag, numeric FourCCs 36 and 110-116 and R8G8_B8G8/G8R8_G8B8 as non-block." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:36:35.385Z" |
|---|
| summary | "Trigger was too narrow: GetDXGIFormat also matches the same FourCC table when the pixel format size and flags are 0 but fourCC is non-zero (mostly zero DDS_PIXELFORMAT). Table rows themselves…" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:49:38.048Z" |
|---|
| summary | "The FourCC table (g_LegacyDDSMap) also maps non-block formats: R8G8_B8G8, G8R8_G8B8 and numeric D3DFMT FourCCs 36 and 110-116 (16/32-bit float and 16-bit formats); the data effect said it always…" |
|---|
| changed | |
|---|
|
|
|---|