Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Cannot select from multiple available GPUs used by QQuickWindow.
Qt 6.11 is out! See what's new in the release blog

Cannot select from multiple available GPUs used by QQuickWindow.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 760 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.
  • ShenCS Offline
    ShenCS Offline
    ShenC
    wrote on last edited by ShenC
    #1

    There are no appropriate functions that can set the GPU used by QQuickWindow/QQuickView.

    I'm using qt6.3 on windows11. I get two GPUs on my laptop:

    Device name: AMD Radeon(TM) Graphics
    Device type: 1
    Device name: NVIDIA GeForce RTX 3060 Laptop GPU
    Device type: 2
    

    I'm trying to use the vulkan api to render the qml scene. But I cannot set the GPU I want to use before showing a QQuickWindow object. One of the related functions is QQuickWindow::setGraphicsDevice, which is not feasible since it takes an already existing VkPhysicalDevice object. A VkPhysicalDevice object can only be created after showing a QQuickWindow object.

    Meanwhile the widget class QVulkanWindow gives us a convenient function QVulkanWindow::setPhysicalDeviceIndex for doing this.

    Perhaps the setting up with class QQuickRenderControl is possible for doing this, but there are too much stuff to take care of for merely selecting a GPU device. I thought it should be a common demand literally.

    1 Reply Last reply
    0
    • ShenCS Offline
      ShenCS Offline
      ShenC
      wrote on last edited by
      #2

      Should I post this somewhere like feature request page, or there is an another solution for selecting from GPUs?

      1 Reply Last reply
      0
      • GrecKoG Offline
        GrecKoG Offline
        GrecKo
        Qt Champions 2018
        wrote on last edited by
        #3

        I would post this in https://lists.qt-project.org/listinfo/interest if I were you.

        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