Skip to content

Support loading yet another DX10 DDS variant with permissive#668

Merged
walbourn merged 1 commit intomainfrom
dx10unknownvariant
Feb 3, 2026
Merged

Support loading yet another DX10 DDS variant with permissive#668
walbourn merged 1 commit intomainfrom
dx10unknownvariant

Conversation

@walbourn
Copy link
Member

@walbourn walbourn commented Feb 3, 2026

A variant of DDS files assumes a value of 0 for DDS_HEADER_DXT10.resourceDimension is treated as if it was set to 3 for 2D texture.

@walbourn walbourn self-assigned this Feb 3, 2026
@walbourn walbourn added the dds DirectDraw Surface (DDS) label Feb 3, 2026
@walbourn walbourn linked an issue Feb 3, 2026 that may be closed by this pull request
@walbourn
Copy link
Member Author

walbourn commented Feb 3, 2026

@walbourn walbourn merged commit 44ab6ea into main Feb 3, 2026
113 checks passed
@walbourn walbourn deleted the dx10unknownvariant branch February 3, 2026 23:48
0xC0000054 added a commit to 0xC0000054/pdn-ddsfiletype-plus that referenced this pull request Feb 4, 2026
A DDS variant used by the game World of Tanks Blitz assumes a value of
D3D10_RESOURCE_DIMENSION_UNKNOWN for the DDS_HEADER_DXT10
resourceDimension field is treated as if it was set to
D3D10_RESOURCE_DIMENSION_TEXTURE2D.

DirectXTex PR microsoft/DirectXTex#668

Closes #21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dds DirectDraw Surface (DDS)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2D DDS textures with D3D10_RESOURCE_DIMENSION_UNKNOWN

2 participants