Open tamlin-mike opened 9 months ago
From documentation, a valid .DDS file must have at least the following flags set in DDS_HEADER/DDSURFACEDESC2 dwFlags:
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.
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.