Skip to content

Force loading as linear RGB #488

Answered by MarkCallow
tuket asked this question in Q&A
Oct 5, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You will have to modify the vkFormat. Looking at the enum names it is easy to see what to change. Working with the numeric values it is harder. If you look up the vkFormat value in the Vulkan VkFormat enum list you will find its name has SRGB in it. The matching non-sRGB format will have UNORM in place of SRGB in its name.

Why do you want to do this? Is the texture incorrectly marked as sRGB?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tuket
Comment options

@MarkCallow
Comment options

Answer selected by MarkCallow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants