Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create a QSGTexture (Metal and d3d) with new rhi backend (Qt 5.15)
Forum Updated to NodeBB v4.3 + New Features

How to create a QSGTexture (Metal and d3d) with new rhi backend (Qt 5.15)

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 219 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dashandslash
    wrote on last edited by dashandslash
    #1

    The title is quite self explanatory, I need to create a QSGTexture for the two different api (Metal and d3d).
    For opengl I used to call:
    auto qsgtexture = qwindow.createTextureFromImage(....)

    This seems returning a nullptr if the scenegraph is initialized with a different backend from opengl.

    What is the best new way to create such a texture with the new Rhi?

    The follow up question would be, can I give the returned QSGTexture to a QSGSimpleTextureNode using node.setTexture(qsgtexture);?

    I am currently working with the latest Qt 5.15

    Thanks

    L

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved