You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
iMrShadow
changed the title
Possible issue with Convert function?
R8G8B8A8 sRGB -> Linear conversion does not work
Mar 28, 2025
iMrShadow
changed the title
R8G8B8A8 sRGB -> Linear conversion does not work
R8G8B8A8_UNORM_SRGB -> R8G8B8A8_UNORM conversion does not work correctly [Convert + Texconv]
Mar 30, 2025
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
orTEX_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 isR8G8B8A8_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
The text was updated successfully, but these errors were encountered: