mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-26 13:24:08 +00:00

We've had some reports like #7641 . Now that we enable partial rendering by default, let's default to software rendering for Skia on Windows, until perhaps the Skia dawn backend arrives. Closes #7641 Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
14 lines
597 B
Rust
14 lines
597 B
Rust
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
use cfg_aliases::cfg_aliases;
|
|
|
|
fn main() {
|
|
// Setup cfg aliases
|
|
cfg_aliases! {
|
|
skia_backend_opengl: { any(feature = "opengl", not(any(target_vendor = "apple", target_family = "windows", target_arch = "wasm32"))) },
|
|
skia_backend_metal: { all(target_vendor = "apple", not(feature = "opengl")) },
|
|
skia_backend_vulkan: { feature = "vulkan" },
|
|
skia_backend_software: { not(target_os = "android") },
|
|
}
|
|
}
|