Backdrop Blur for GPUI #47429
Replies: 1 comment 1 reply
-
|
The whole-window blur via On macOS it uses an The core problem is that GPUI is a single-pass forward renderer. Every primitive gets sorted by draw order in scene.rs and blended in one pass The shadow shader has gaussian blur, but it computes its own alpha analytically and never reads back already-rendered pixels Backdrop blur requires exactly that: sample what's behind the element, blur it, composite on top For macOS specifically, the most practical approach would be scoping the existing The compositor handles the downsampling so it's cheap, but it's platform-specific For cross-platform, you'd need to introduce a Would love to see your fork if you have this working. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am building an app using GPUI. I wanted to add background blur so that app elements like menu etc can have backdrop blur. Admittedly it doesn't have a lot of value for Zed at the moment but GPUI as a cross platform UI framework, esp for consumer apps could use this. I have a fork that adds that support in. Happy to send in a PR if you'd accept it.
Beta Was this translation helpful? Give feedback.
All reactions