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

Renderbuffer support missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.10.0 Alpha
    • 5.9
    • Qt3D
    • None

    Description

      Render target outputs only support textures at the moment. This is pretty bad when it comes to depth/stencil and OpenGL ES: there the traditional way to do depth/stencil attachments is to use a packed D24S8 renderbuffer. Using a combined depth/stencil texture is not possible before ES 3.2 (since there is no glFramebufferTexture, and glFramebufferTexture2D does not take GL_DEPTH_STENCIL_ATTACHMENT). What's more, creating a separate stencil texture is not really possible either due to lacking a suitable format before 3.2/3.1+extension.

      Therefore, it would be beneficial if the FBO handling in GraphicsContext & friends could internally fall back to using a renderbuffer on OpenGL ES <= 3.1 when the attachment point is RenderTargetOutput::DepthStencil. This would then lead to a Texture2D that cannot be used as a texture (sampled, etc.) but that's usually ok for a combined depth-stencil.

      Attachments

        For Gerrit Dashboard: QTBUG-61721
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes