There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Ensure proper SRGB handling
The explicit use of _SRGB dxgi formats or the filtering flags TEX_FILTER_SRGB_IN, TEX_FILTER_SRGB_OUT, TEX_FILTER_SRGB should be respected for conversions, resizing, and mipmap generation. While it is partially implemented, WIC-based conversions and resizing
isn't properly using those flags.
Furthermore, Use of IWICFormatConverter implicitly assumes all integer content is sRGB and all fixed/float content is scRGB so there's an implicit conversion of color space which is not desired. This is particularly concerning because for many DXGI formats,
this interface is used to convert content to 128bpp float for SIMD-based CPU processing by DirectXTex and then converted back. These code paths all need validation that they properly preserve or change sRGB as requested by the client.
Note: IWICColorTransform is not as useful here as hoped because it will fail when given any fixed-point or floating-point format.