iced
iced copied to clipboard
Window background is incorrect using Vulkan on Windows
Is there an existing issue for this?
- [X] I have searched the existing issues.
Is this issue related to iced?
- [X] My hardware is compatible and my graphics drivers are up-to-date.
What happened?
This issue is most noticeable with dark themes. With every dark theme the background is almost solid black. With light themes there is still a small difference.
All UI elements render as expected, only the window background is affected.
On Linux all backends work as expected.
What is the expected behavior?
Background colours should be the same across all backends
Version
crates.io release
Operating System
Windows
Do you have any log output?
No response
Strange. May be a driver issue, a wgpu
bug, or a surface misconfiguration related to #2231.
Could you post the terminal output when running the tour
example both for vulkan
and dx12
?
It seems iced
is choosing to use your integrated GPU by default, so I would bet this is most likely a driver issue.
You can force iced
to use your discrete GPU by enabling the antialiasing
flag in Settings
, or you could simply try the game_of_life
example which enables that already.
I get the same result with antialiasing = true
.
Here are logs of a modified tour
example with antialiasing = true
. I can confirm it does use my discrete GPU in this case:
Testing further, if I enable the "web-colors"
feature I also don't see this issue.
Could this be related to gfx-rs/wgpu#4842?