Does anyone know if it is possible to determine the compression format of an existing DDS texture file? I have the NVidia Photoshop plugin, a DXTViewer app, and Honeyview app, but cannot seem to find any way to obtain this simple information?
By compression formats, I’m referring to BC7, BC6H, BC3, BC2, etc.
2
Answers
Most DDS viewers out there only understand how to parse the standard ‘DDS’ file. Since the introduction of Direct3D 10, there is a "DX10" extension header which is indicated by the FourCC value of "DX10" in the old
DDPIXELFORMAT
. This was implemented in D3DX10, D3DX11, and DirectXTex. See this blog post.BTW, modern versions of Visual Studio can view most DDS files.
You can build the ddsdump.cpp which also needs dds.h to build a quick console application which dumps out the header information and format.
See also DirectXTex on GitHub and Microsoft Docs.
I see this is old, but in case somebody is still searching for a solution to read out .dds formats etc.
check out ‘texdiag’ its free and shows you all the info you need about .dds formatting