1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 12:00:06 +00:00

Avoid WIC bitmap scalar for box/fant/point resizing for > 8 bpc HDR/XR formats

This commit is contained in:
Chuck Walbourn 2022-04-06 00:00:46 -07:00
parent b1001d15b3
commit bc1aecbcf8
2 changed files with 16 additions and 0 deletions

View File

@ -686,6 +686,14 @@ namespace
case TEX_FILTER_TRIANGLE:
// WIC does not implement this filter
return false;
default:
if (BitsPerColor(format) > 8)
{
// Avoid the WIC bitmap scaler when doing filtering of XR/HDR formats
return false;
}
break;
}
return true;

View File

@ -233,6 +233,14 @@ namespace
case TEX_FILTER_TRIANGLE:
// WIC does not implement this filter
return false;
default:
if (BitsPerColor(format) > 8)
{
// Avoid the WIC bitmap scaler when doing filtering of XR/HDR formats
return false;
}
break;
}
return true;