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