Output DDS file missing required flags DDSD_CAPS, DDSD_PIXELFORMAT
tamlin-mike opened this issue · 0 comments
tamlin-mike commented
From documentation, a valid .DDS file must have at least the following flags set in DDS_HEADER/DDSURFACEDESC2 dwFlags
:
DDSD_CAPS (0x1)
DDSD_HEIGHT (0x2)
DDSD_WIDTH (0x4)
DDSD_PIXELFORMAT (0x1000)
A simple test (compressonatorcli.exe -fd BC7 -mipsize 1 infile.png outfile.dds) produced an invalid .DDS file, missing both DDSD_CAPS and DDSD_PIXELFORMAT.
The fix is obvious.