How To obtain real data

How to obtain real data generated by nvcompress.exe (excluding DDS headers and metadata),What’s the offset

Hi @whb2333! If bytes 0x54-0x57 are the 4-character sequence “DX10”, then the file data starts at 0x94 (that is, 144 bytes into the file); otherwise, it starts at 0x7C (124 bytes into the file). This logic holds for all DDS files.

If you’re compressing your own files, you might also want to check out the low-level compression API in nvtt_lowlevel.h – then you’d be able to skip writing and reading DDS files! And the new nvtt_encode() function in NVTT 3.2.0+ makes this not too difficult to use.

Hope this helps!