Description
Hello!
I am using a .NET wrapper of DirectXTex for an application that displays textures. Since I am displaying them to the screen, I am converting them to R8G8B8A8 Linear format.
The issues comes with sRGB textures. I had trouble converting them to Linear space using the single image convert function. I verified that the correct TEX_FILTER_FLAGS
flags are used (TEX_FILTER_SRGB_IN
or TEX_FILTER_DEFAULT
) and that the convert function works (tested with: R16B16G16A16_UNORM
, R32G32B32A32_FLOAT
, A8_UNORM
, R8G8_UNORM
).
Texconv has the same issue. Using the options -f R8G8B8A8_UNORM
and -srgbi
, while the input format is R8G8B8A8_UNORM_SRGB
, the pixel data stays the same. In the DDS file, only the enum has changed.
So far this issue has only happened when trying to convert R8G8B8A8_UNORM_SRGB to R8G8B8A8_UNORM (on Windows with RX 580).
Thanks