-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.10.0
-
None
-
Windows 11, Vulkan
Currently, QQuickRhiItem offers a limited set of formats, all of which are non-sRGB.
Being able to render into an sRGB texture would be better perf-wise, as it would avoid a software conversion in shader.
For the Vulkan backend (that we use), this can be done by adding the VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT flag on image creation, so that image views can be created with formats that differ from the image format.
Additionally, the VkImageFormatListCreateInfo struct can be passed in the pNext chain to provide the list of known formats that will be compatible with the image (here, the sRGB and non-sRGB variants of the image format).