Repository metrics
- Stars
- (22,596 stars)
- PR merge metrics
- (Avg merge 3d 14h) (235 merged PRs in 30d)
Description
Feature Description
Currently OpenGL backend explicitly disabled for Femtovg WGPU renderer:
i_slint_core::graphics::wgpu_29::init_instance_adapter_device_queue_surface(
surface_target,
requested_graphics_api,
/* rendering artifacts :( */
wgpu::Backends::GL,
)?;
So I made a fork, where enable OpenGL backend for Femtovg WGPU and tested it for the next examples
- gallery
- memory
- slide_puzzle
- system-tray
- dnd-kanban
- imagefilter
- runtime_key_bindings
- speedometer
- carousel
- todo
- todo-mvc
- virtual_keyboard
- 7guis
- wgpu_texture
I tested both on Windows and Linux, have not seen any artifacts or any other kind of bug
Linux env:
Intel (iGPU, native Mesa) Mesa Intel(R) Graphics (RPL-S) OpenGL 4.6 (Core/Compat) Mesa 26.1.2, OpenGL ES 3.2 Mesa 26.1.2
NVIDIA (RTX 4070, via zink) │ zink Vulkan 1.4(NVIDIA GeForce RTX 4070 Laptop GPU (NVIDIA_PROPRIETARY))
Tested on both chips
Windows env:
AMD Radeon(TM) 610M from ATI Technologies Inc. OpenGL version 4.6.0 Compatibility Profile Context 24.30.34.07.250530
Slint version: 1.17.0 (68c8ced)
Cargo features: "renderer-femtovg-wgpu", "unstable-wgpu-29", "backend-winit"
Tested with env WGPU_BACKEND="gl"
Enabling OpenGL will increase Slint compatibility a lot in my opinion
Product Impact
No response