mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-06 13:16:13 +01:00
Add check of mips support for IsSupportedTexture
This commit is contained in:
@@ -260,6 +260,11 @@ bool DirectX::IsSupportedTexture(
|
||||
formatSupport = 0;
|
||||
}
|
||||
|
||||
if (metadata.mipLevels > 1 && !(formatSupport & D3D11_FORMAT_SUPPORT_MIP))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (metadata.dimension)
|
||||
{
|
||||
case TEX_DIMENSION_TEXTURE1D:
|
||||
|
||||
Reference in New Issue
Block a user