Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140925

QQuickRhiItem: Add a way to use sRGB formats

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.10.0
    • Qt RHI
    • None
    • Windows 11, Vulkan

    • All

      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).

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            maximeduriez Maxime Duriez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes