compressonator icon indicating copy to clipboard operation
compressonator copied to clipboard

sRGB dxgi formats support?

Open Zelex opened this issue 5 years ago • 4 comments

It appears as though BC1_UNORM vs BC1_UNORM_SRGB decode 100% identically.

Pretty sure that should be a bug?

Zelex avatar May 27 '20 20:05 Zelex

Also, it seems I cannot attach DDS files to issues =/ Though thats a github issue, not your issue per-se. let me know if you want some test files. I can email some no problem.

Zelex avatar May 27 '20 20:05 Zelex

@Zelex try zip

NPCompress avatar May 27 '20 20:05 NPCompress

kodim01_srgb.zip yay! :)

Zelex avatar May 27 '20 20:05 Zelex

I'm going to link #277 because they're really the same issue. This problem is really annoying because it means that you have to know the context that an image is going to be used in before loading it - BC7_UNORM images have to be loaded as BC7_UNORM_SRGB images when used for colour data. It's a pretty simple fix, just use a flag that sets whether a _SRGB format is set or not.

expenses avatar Dec 04 '23 03:12 expenses