mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-16 23:10:13 +02:00
Add check of mips support for IsSupportedTexture
This commit is contained in:
parent
5db16bd5bb
commit
3ac574b6b5
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user