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

Create QSGTexture as Rhi Render Target

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: Quick: SceneGraph
    • Labels:
      None
    • Platform/s:
      All

      Description

      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.

        Attachments

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

          Activity

            People

            Assignee:
            janichol Andy Nichols
            Reporter:
            ibingow wangbin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes