Closed laycookie closed 2 months ago
Your winit::Window
must be created with the transparent flag enabled, and your wgpu::Surface
must have its configuration's alpha mode set to one that supports transparency.
Your
winit::Window
must be created with the transparent flag enabled, and yourwgpu::Surface
must have its configuration's alpha mode set to one that supports transparency.
Thank you, CompositeAlpha was set to Auto which was then setting it to opaque. Setting it to PostMultiplied, or Inherit caused the application to crash meanwhile setting it to PreMultiplied caused transparency to work properly. Setting 'with_transperacny' in my case wasn't necessary tho. In the description of CompositeAlphaMode::Inherit it is saying that by default it will apply platform specific default for blending, so what is the reason it might possibly be just crashing, when set to that or did I miss interpreted it?
In the description of CompositeAlphaMode::Inherit it is saying that by default it will apply platform specific default for blending, so what is the reason it might possibly be just crashing, when set to that or did I miss interpreted it?
It probably crashed because your gpu does not support post-multiplied alpha modes. You can check what modes are supported with the Surface::get_capabilities function.
Description
When setting ops_load to transparent, it renders it as black. I use Hyprland as my Window Compositor.
Code:
Debugging output
No response
Window isn't shown unless you draw
Winit version
0.30.5