How to select a different GPU for the OpenGL context ? #4987
-
I'm trying to run the OpenGL texture example and I noticed the shader version use is With some closer inspection, the program is using the Intel UHD gpu with OpenGL ES 2.0. How can I specify the usage of another gpu, in this case I have an NVidia RTX gpu as well, or use another OpenGL context that handle newer GLSL versions ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
At the moment that's not possible, we default to OpenGL ES. One thing that you could try is to create a separate sharing GL context, render into a texture there, but - due to sharing - be able to use the same texture id with slint::Image. Long term, it would be really nice to have API that allows users to request certain aspects of the graphics configuration at startup, such as a preference for the renderer, or for example a preference for the OpenGL profile. |
Beta Was this translation helpful? Give feedback.
At the moment that's not possible, we default to OpenGL ES.
One thing that you could try is to create a separate sharing GL context, render into a texture there, but - due to sharing - be able to use the same texture id with slint::Image.
Long term, it would be really nice to have API that allows users to request certain aspects of the graphics configuration at startup, such as a preference for the renderer, or for example a preference for the OpenGL profile.