mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-16 15:00:14 +02: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:
|
case TEX_FILTER_TRIANGLE:
|
||||||
// WIC does not implement this filter
|
// WIC does not implement this filter
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
default:
|
||||||
|
if (BitsPerColor(format) > 8)
|
||||||
|
{
|
||||||
|
// Avoid the WIC bitmap scaler when doing filtering of XR/HDR formats
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -233,6 +233,14 @@ namespace
|
|||||||
case TEX_FILTER_TRIANGLE:
|
case TEX_FILTER_TRIANGLE:
|
||||||
// WIC does not implement this filter
|
// WIC does not implement this filter
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
default:
|
||||||
|
if (BitsPerColor(format) > 8)
|
||||||
|
{
|
||||||
|
// Avoid the WIC bitmap scaler when doing filtering of XR/HDR formats
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user