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:
parent
b1001d15b3
commit
bc1aecbcf8
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user