Render/View Vulkan texture (VkImageView) in widget and render UI to offscreen texture #7231
Replies: 2 comments 2 replies
-
There's no public API for this yet and the Skia Vulkan renderer requires additional work, as it only renders into a swap chain at the moment. But in principle I think this is something that we want to be able to support. In your app, how do you drive the event loop? |
Beta Was this translation helpful? Give feedback.
-
Hi thanks for the reply. Great news that this functionality is something you would like to support in the future. Currently my event loop is similar to a game event loop. I use my own backend for polling incoming events ( Regarding the interface for the Skia Vulkan renderer I have some ideas that could possibly be of benefit. If it is possible to provide a
If Skia can't use a user specified I did look into doing this myself and doing a PR but it seems all the Vulkan code is implemented in Rust and is generated for C++? Unfortunately I don't know Rust very well... |
Beta Was this translation helpful? Give feedback.
-
I'm interested in using Slint for a GUI in an application that will have two display modes. An "editing" mode and a "perform" mode. The former would need to display a texture located on the GPU (Vulkan) in a widget and the latter would be a full-screen render which would need to have the option to display some basic UI elements on top of the primary render (which is being presented the screen by the host not Slint/Winit).
Is this currently possible with Slint? On Windows the renderer is Vulkan and on Mac it will be Metal via Molten.
I did notice there are some other related discussions but I can't really see other any firm capabilities implemented other than Skia/Vulkan is now supported (just not updated in the docs).
Beta Was this translation helpful? Give feedback.
All reactions