Desktop: Render overlays with vello (#2965)
Some checks are pending
Editor: Dev & CI / build (push) Waiting to run
Editor: Dev & CI / cargo-deny (push) Waiting to run

* Render overlays with vello

* Fix nix flake comments

* Rendering refactor with better names and code location

* Remove unnecessary overlay renders

* Post rebase fix
This commit is contained in:
Timon 2025-08-02 16:27:24 +02:00 committed by GitHub
parent 037bcb6b26
commit 34a8b9b6f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 728 additions and 401 deletions

View file

@ -158,11 +158,9 @@ impl WgpuExecutor {
});
let view = texture.create_view(&wgpu::TextureViewDescriptor::default());
let [r, g, b, _] = background.to_rgba8_srgb();
let [r, g, b, a] = background.to_rgba8_srgb();
let render_params = RenderParams {
// We are using an explicit opaque color here to eliminate the alpha premultiplication step
// which would be required to support a transparent webgpu canvas
base_color: vello::peniko::Color::from_rgba8(r, g, b, 0xff),
base_color: vello::peniko::Color::from_rgba8(r, g, b, a),
width: size.x,
height: size.y,
antialiasing_method: AaConfig::Msaa16,