Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:DDS (DirectDraw Surface)/struct/DDS PIXELFORMAT

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
Empty array
data
name"DDS_PIXELFORMAT"
size"0x20"
endianness"little"
fields
offset"0x0"
size4
type"uint32_t"
name"size"
notes"must be 32 (0 and 24 accepted as known variants in permissive mode)"
offset"0x4"
size4
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"
size4
type"uint32_t"
name"fourCC"
notes"e.g. DXT1, DXT5, ATI1, ATI2, BC4U, BC5U, DX10"
offset"0xC"
size4
type"uint32_t"
name"RGBBitCount"
offset"0x10"
size4
type"uint32_t"
name"RBitMask"
offset"0x14"
size4
type"uint32_t"
name"GBitMask"
offset"0x18"
size4
type"uint32_t"
name"BBitMask"
offset"0x1C"
size4
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
Empty array
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."