1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-08 22:10:05 +00:00

Add .DDX Support (#336)

This commit is contained in:
Half Dragon 2023-06-10 19:27:36 +02:00 committed by GitHub
parent 603efced7b
commit 0dd5933058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,6 +442,7 @@ namespace
{ L"jpeg", WIC_CODEC_JPEG },
{ L"png", WIC_CODEC_PNG },
{ L"dds", CODEC_DDS },
{ L"ddx", CODEC_DDS },
{ L"tga", CODEC_TGA },
{ L"hdr", CODEC_HDR },
{ L"tif", WIC_CODEC_TIFF },
@ -2085,7 +2086,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
return 1;
}
if (_wcsicmp(ext, L".dds") == 0)
if (_wcsicmp(ext, L".dds") == 0 || _wcsicmp(ext, L".ddx") == 0)
{
DDS_FLAGS ddsFlags = DDS_FLAGS_ALLOW_LARGE_FILES;
if (dwOptions & (uint64_t(1) << OPT_DDS_DWORD_ALIGN))