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
Alpha_mode in the SurfaceConfiguration does not work. #5661
Comments
thanks for reporting! Looks like something is messed up there. |
I don't think this is actually our bug - if anything this is an issue with Intel. We just pass through the vulkan compositing modes, so if Opaque (which is defined in vk as explicitly ignoring the alpha) is reading the Alpha, thats the drivers problem. If that's the behavior they want, they should be advertising the Inherit blend mode, which has undefined alpha blending behavior. |
@cwfitzgerald that makes geuss sometimes bugs are usefull (cause I wanted to make something transparent) :). Should I close this issue since its not a wgpu issue? ( And my nivdia gpu not being able to render transparent is already know so their is probibly already an issue for it) |
I've just encountered this behavior and this issue is the only one that talks about it (maybe I've missed it). |
Want to start with the fact that I am very new to wgpu and and anything gpu related for that matter so if my issue is something very obvious I'm sorry.
Description
I wanted to make a transparent window with wgpu + winnit but when setting the alpha_mode for my surface to anything other then Opaque it errored with: 'Requested alpha mode x is not in the list of supported alpha modes: [Opaque]". And when using Opaque it is Opaque which until this point all makes sence (altough I would not know why my gpu does not support other alpha modes). But then when I switch my gpu to my low power integrated gpu I can still not do any alpha modes but when chosing Opaque the window is drawn transparent (and not Opaque).
Repro steps
(mostly a modified version of https://sotrh.github.io/learn-wgpu/)
and cargo.toml with
Expected vs observed behavior
So what I would expect with Opaque alpha mode is this:
and this is what I get when using my nvidia gpu but when I use the low power one I get:
Now what I would expect is to be able to specify the alpha mode in both cases and that the alpha mode determines if it is drawn transparent, also I dont understand why my nvidia gpu does not support any other modes.
Platform
Using windows 11
the high power gpu is a nvidia gpu
the low power gpu is a intel integrated gpu (I am on a laptop)
using version 0.20.0 of wgpu
The text was updated successfully, but these errors were encountered: