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

Update DirectXTexConvert.cpp

Conversion logic for WIC vs. non-WIC update for new flags.
This commit is contained in:
Chuck Walbourn 2023-03-18 21:58:03 -07:00 committed by GitHub
parent e61095099e
commit 691e4e5b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4458,6 +4458,12 @@ namespace
return false;
}
if (filter & (TEX_FILTER_FLOAT16_SATURATE_TO_INF | TEX_FILTER_FLOAT16_KEEP_NANS))
{
// Float16 specials preservation not supported by WIC code paths
return false;
}
// Check for special cases
#if (defined(_XBOX_ONE) && defined(_TITLE)) || defined(_GAMING_XBOX)
if (sformat == DXGI_FORMAT_R16G16B16A16_FLOAT