Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74406 Abstract away the graphics APIs in Qt
  3. QTBUG-78595

QQuickRenderControl story when on the QRhi-based rendering path of Qt Quick




      QQuickRenderControl? Offscreen (to texture) rendering? Not supported with the QRhi-based rendering path at the moment. It should be made working for when running with OpenGL at least, in order to enable QQuickWidget.

      • QQuickWindow should get an alternative to setRenderTarget(Id). Likely a function taking a pointer to a native object and a layout, just like createTextureFromNativeObject().
        Internally this needs to be hooked up in QQuickWindowPrivate::renderSceneGraph() and elsewhere. (create a wrapping QRhiTexture, then a QRhiTextureRenderTarget, etc. - passing these to context->beginNextRhiFrame() should take care of the rest)
      • (If/when QRhi becomes semi-public this can be complemented by an overload taking a QRhiTextureRenderTarget directly.)
      • QQuickRenderControl::initialize(QOpenGLContext*) needs a new alternative. Internally this will likely need to do a QSGRhiSupport::createRhi(), like a render loop would do. (but watch out for the case of having multiple QQuickRenderControl instances - these would presumably want to share the same QRhi and co.)
      • QQuickRenderControl::grab() needs a new code path, implementing the readback using QRhi.


          Issue Links

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



              • Assignee:
                lagocs Laszlo Agocs
                lagocs Laszlo Agocs
              • Votes:
                1 Vote for this issue
                2 Start watching this issue


                • Created:

                  Gerrit Reviews

                  There is 1 open Gerrit change