You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to render a wgpu frame over the webview with the goal to support the steam overlay.
Here is my advancement so far:
Kooha-2024-12-09-08-13-17.mp4
The green part is wgpu rendering to the window.
You can see the webview buttons rendering on top of it
What I'm trying to do is to have the webview under the wgpu frames with transparency (to show the overlay over the webview)
Using maybe some sort of frame ordering, I don't know
Other solutions I've explored but don't know the viability:
Do some headless wgpu rendering to compute a texture, send the buffer to the frontend and draw it into a canvas, on top of the rest.
I've see 300ms rendering on a low-end PC so i'm concerned about performance
I don't know how to handle mouse events since only an image of the overlay is transfered
Use a second window:
stacking two windows on top of each other
make the overlay window topmost, transparent, frameless
when overlay is present disable passthrough, otherwise enable passthrough (to allow mouse clicks and other to hit the correct window)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey all 👋
I'm trying to render a wgpu frame over the webview with the goal to support the steam overlay.
Here is my advancement so far:
Kooha-2024-12-09-08-13-17.mp4
The green part is wgpu rendering to the window.
You can see the webview buttons rendering on top of it
What I'm trying to do is to have the webview under the wgpu frames with transparency (to show the overlay over the webview)
Using maybe some sort of frame ordering, I don't know
My work is based on:
Other solutions I've explored but don't know the viability:
stacking two windows on top of each other
make the overlay window topmost, transparent, frameless
when overlay is present disable passthrough, otherwise enable passthrough (to allow mouse clicks and other to hit the correct window)
What do you think about these solutions ?
Beta Was this translation helpful? Give feedback.
All reactions