<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;">It seems that there are no appropriate functions that can set the GPU used by <span style="color:#C7254E;font-family:Menlo, Monaco, Consolas, "Courier New", monospace;font-size:12.6px;white-space:normal;background-color:#F9F2F4;">QQuickWindow/QQuickView</span>.</span>
</p>
<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"><br>
</span>
</p>
<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;">I'm using qt6.3 on windows11. I have two graphics card on my laptop:</span>
</p>
<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"> </span>
</p>
<pre class="markdown-highlight" style="box-sizing:border-box;overflow:auto;font-family:Menlo, Monaco, Consolas, "Courier New", monospace;font-size:13px;padding:9.5px;margin-top:1rem;margin-bottom:10px;line-height:1.42857;word-break:break-all;overflow-wrap:break-word;color:#333333;background-color:#FFFFFF;border:none;border-radius:0px;max-height:350px;position:relative;"><code class="hljs bash" style="box-sizing:border-box;font-family:Menlo, Monaco, Consolas, "Courier New", monospace;font-size:inherit;padding:0.5em;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;border-radius:0px;display:inline-block;overflow-x:auto;overflow-wrap:normal;min-width:100%;">Device name: AMD Radeon(TM) Graphics
Device <span class="hljs-built_in" style="box-sizing:border-box;color:#660066;">type</span>: integrated
Device name: NVIDIA GeForce RTX 3060 Laptop GPU
Device <span class="hljs-built_in" style="box-sizing:border-box;color:#660066;">type</span>: discrete</code></pre>
<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;">I tried to use vulkan by calling <span style="color:#C7254E;font-family:Menlo, Monaco, Consolas, "Courier New", monospace;font-size:12.6px;white-space:normal;background-color:#F9F2F4;">QQuickView::setGraphicsApi</span>, but found nowhere to set GPU to use. <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;">Meanwhile the widget class </span><code style="box-sizing:border-box;font-family:Menlo, Monaco, Consolas, "Courier New", monospace;font-size:12.6px;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:0px;white-space:normal;">QVulkanWindow</code><span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"> gives us a convenient function </span><code style="box-sizing:border-box;font-family:Menlo, Monaco, Consolas, "Courier New", monospace;font-size:12.6px;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:0px;white-space:normal;">QVulkanWindow::setPhysicalDeviceIndex</code><span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"> for doing this. </span></span>
</p>
<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"><span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"><br>
</span></span>
</p>
<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"><span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"><span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;">Perhaps the setting up with class </span><code style="box-sizing:border-box;font-family:Menlo, Monaco, Consolas, "Courier New", monospace;font-size:12.6px;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:0px;white-space:normal;">QQuickRenderControl</code><span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"> is possible, but there is too much stuff to take care of for merely selecting a GPU device. I thought it would be a common demand for all desktop developer, not only those using Vulkan.</span></span></span>
</p>
<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"><span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"><br>
</span></span>
</p>
<p>
        <span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;"><span style="color:#333333;font-family:"Titillium Web";font-size:14px;white-space:normal;background-color:#FFFFFF;">Is there any plan on adding related function to select from GPUs? Or maybe there is another already-exist solution for that?<br>
</span></span>
</p>