mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
Improve docs about backend and render selection
This commit is contained in:
parent
2e3b00e38e
commit
e1f6c48958
3 changed files with 10 additions and 0 deletions
|
@ -10,6 +10,12 @@ macOS, Windows, Linux with Wayland and X11, and direct full-screen rendering via
|
|||
The Qt backend only supports software rendering at the moment. That means it runs with any graphics driver,
|
||||
but it does not utilize GPU hardware acceleration.
|
||||
|
||||
The compilation step will detect whether Qt is installed or not using the qttype crate.
|
||||
See the instructions in the [qttypes documentation](https://docs.rs/qttypes/latest/qttypes/#finding-qt)
|
||||
on how to set environment variables to point to the Qt installation.
|
||||
|
||||
If Qt is not installed, the backend will be disabled, and Slint will fallback to another backend, usually the [Winit backend](backend_winit.md).
|
||||
|
||||
## Configuration Options
|
||||
|
||||
The Qt backend reads and interprets the following environment variables:
|
||||
|
|
|
@ -18,6 +18,9 @@ The Winit backend supports different renderers. They can be explicitly selected
|
|||
| Skia OpenGL | OpenGL rendering with Skia | `winit-skia-opengl` |
|
||||
| software | Software-rendering, no GPU required | `winit-software` |
|
||||
|
||||
If no renderer is explicitly set, the backend will first try to use the Skia renderer, if it was enabled at compile time.
|
||||
If that fails, it will fall back to the FemtoVG renderer, and if that also fails, it will use the software renderer.
|
||||
|
||||
|
||||
## Configuration Options
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue