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

Create QSGTexture as Rhi Render Target

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.0.0
    • Quick: SceneGraph
    • None
    • All

      What I need is drawing my content to a texture then used by qtquick item. For opengl, we have QQuickFramebufferObject and custom item like metaltextureimport/vulkantextureimport example. The latter can be more generic, but currently we need to write code for each gfx api like the examples. Using QRhi apis is an option and it works in my project(https://github.com/wang-bin/mdk-examples/blob/qrhi/Qt/qmlrhi/VideoTextureNodePriv.cpp), but QRhi is private. If we can create a render target QSGTexture via a public api, the code will be very simple, and it can be a replacement of QQuickFramebufferObject. Of cause for opengl we also need to know fbo id.

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

            janichol Andy Nichols
            ibingow wangbin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes