From 691e4e5b04547f7969a80efffe428c9c4d702cec Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Sat, 18 Mar 2023 21:58:03 -0700 Subject: [PATCH] Update DirectXTexConvert.cpp Conversion logic for WIC vs. non-WIC update for new flags. --- DirectXTex/DirectXTexConvert.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DirectXTex/DirectXTexConvert.cpp b/DirectXTex/DirectXTexConvert.cpp index 37b9909..a1515f5 100644 --- a/DirectXTex/DirectXTexConvert.cpp +++ b/DirectXTex/DirectXTexConvert.cpp @@ -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