Skip to content
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 windows don't work due to hardcoded alpha mode #370

Open
analog-hors opened this issue Jul 9, 2023 · 2 comments
Open

Transparent windows don't work due to hardcoded alpha mode #370

analog-hors opened this issue Jul 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@analog-hors
Copy link

This is more or less the same as #274, which I believe was falsely closed. When that issue was filed, CompositeAlphaMode was not yet exposed in wgpu, which meant that pixels could not configure it to make transparent windows work. #274 was then closed when the upstream wgpu issue was resolved. However, pixels was never actually updated to use the now-exposed CompositeAlphaMode API, and it is still hardcoded to use the first one (which appears to be Opaque all the time):

let alpha_mode = surface_capabilities.alpha_modes[0];

Therefore, the issue with transparency still persists.

@parasyte parasyte added the enhancement New feature or request label Jul 9, 2023
@parasyte
Copy link
Owner

parasyte commented Jul 9, 2023

I'll accept a PR to allow setting the alpha mode in the builder.

@parasyte
Copy link
Owner

parasyte commented Feb 7, 2024

See also #274: wgpu still only supports opaque surfaces, at least on Windows 11/Nvidia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants