Skip to content

Instantly share code, notes, and snippets.

@rfuzzo
Created August 10, 2020 11:44
Show Gist options
  • Save rfuzzo/5a206de0747346c9daa75d5e45687565 to your computer and use it in GitHub Desktop.
Save rfuzzo/5a206de0747346c9daa75d5e45687565 to your computer and use it in GitHub Desktop.
meta:
id: dds
file-extension: dds
endian: le
seq:
- id: magic
contents: [0x44, 0x44, 0x53, 0x20]
- id: dwsize
type: u4
- id: dwflags
type: u4
- id: dwheight
type: u4
- id: dwwidth
type: u4
- id: dwpitchorlinearsize
type: u4
- id: dwdepth
type: u4
- id: dwmipmapcount
type: u4
- id: dw_reserved
type: u4
repeat: expr
repeat-expr: 11
- id: ddspf
type: dds_pixelformat
- id: dwcaps
type: u4
- id: dwcaps2
type: u4
- id: dwcaps3
type: u4
- id: dwreserved12
type: u4
types:
dds_pixelformat:
seq:
- id: dwsize
type: u4
- id: dwflags
type: u4
- id: dwfourcc
type: u4
- id: dwrgbbitcount
type: u4
- id: dwrbitmask
type: u4
- id: dwgbitmask
type: u4
- id: dwbbitmask
type: u4
- id: dwabitmask
type: u4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment