-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transparent window support #385
Comments
Seems to also be the case on the following systems:
|
Having basically the same issue. I have this code in my mode(&App) function app
.new_window()
.fullscreen()
.transparent(true)
.always_on_top(true)
.view(view)
.build()
.unwrap(); and the window has a black background. Theere is no code in my view(...) function drawing a background |
@zperk13 I verified this does indeed happen on Windows 10 w/ GTX 1080. For now, just replace Other than that, it seems very likely to be a winit issue. There are multiple reports of this here: rust-windowing/winit#2502 ("undecorated" means a window without title bar/etc). |
Same issue on Linux with X11. Not sure if this is a winit issue, for creating a window with a transparent background with just winit is not a problem. |
It seems that since switching to Vulkan it's not as trivial to get a transparent window working!
Expected behaviour
You should be able to create a transparent window like this:
Actual behaviour
The above results in a black screen. This is likely due to the default
CompositeAlpha::Opaque
value specified when building the window's swapchain. We can override this with the following:However so far on my Linux machine with mesa intel vulkan driver the
PostMultiplied
value is not supported and results in apanic!
:Possible solutions
PostMultiplied
composite value across Vulkan implementations in the wild.ColorSpace
orFormat
.rendy
and address the issue then to avoid duplicate work.The text was updated successfully, but these errors were encountered: