pixels icon indicating copy to clipboard operation
pixels copied to clipboard

Transparent windows don't work due to hardcoded alpha mode

Open analog-hors opened this issue 2 years ago • 2 comments

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): https://github.com/parasyte/pixels/blob/d140eba7c9849372a6673b0d37bfe83948c4e530/src/builder.rs#L322

Therefore, the issue with transparency still persists.

analog-hors avatar Jul 09 '23 14:07 analog-hors

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

parasyte avatar Jul 09 '23 21:07 parasyte

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

parasyte avatar Feb 07 '24 22:02 parasyte