You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/rs/slint/lib.rs
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -446,22 +446,22 @@ mod compile_fail_tests;
446
446
#[cfg(doc)]
447
447
pubmod docs;
448
448
449
-
#[cfg(feature = "unstable-wgpu-25")]
450
-
pubmodwgpu_25{
451
-
//! WGPU 25.x specific types and re-exports.
449
+
#[cfg(feature = "unstable-wgpu-26")]
450
+
pubmodwgpu_26{
451
+
//! WGPU 26.x specific types and re-exports.
452
452
//!
453
453
//! *Note*: This module is behind a feature flag and may be removed or changed in future minor releases,
454
454
//! as new major WGPU releases become available.
455
455
//!
456
456
//! Use the types in this module in combination with other APIs to integrate external, WGPU-based rendering engines
457
457
//! into a UI with Slint.
458
458
//!
459
-
//! First, ensure that WGPU is used for rendering with Slint by using [`slint::BackendSelector::require_wgpu_25()`](i_slint_backend_selector::api::BackendSelector::require_wgpu_25()).
459
+
//! First, ensure that WGPU is used for rendering with Slint by using [`slint::BackendSelector::require_wgpu_26()`](i_slint_backend_selector::api::BackendSelector::require_wgpu_26()).
460
460
//! This function accepts a pre-configured WGPU setup or configuration hints such as required features or memory limits.
461
461
//!
462
462
//! For rendering, it's crucial that you're using the same [`wgpu::Device`] and [`wgpu::Queue`] for allocating textures or submitting commands as Slint. Obtain the same queue
463
463
//! by either using [`WGPUConfiguration::Manual`] to make Slint use an existing WGPU configuration, or use [`slint::Window::set_rendering_notifier()`](i_slint_core::api::Window::set_rendering_notifier())
464
-
//! to let Slint invoke a callback that provides access device, queue, etc. in [`slint::GraphicsAPI::WGPU25`](i_slint_core::api::GraphicsAPI::WGPU25).
464
+
//! to let Slint invoke a callback that provides access device, queue, etc. in [`slint::GraphicsAPI::WGPU26`](i_slint_core::api::GraphicsAPI::WGPU26).
465
465
//!
466
466
//! To integrate rendering content into a scene shared with a Slint UI, use either [`slint::Window::set_rendering_notifier()`](i_slint_core::api::Window::set_rendering_notifier()) to render an underlay
467
467
//! or overlay, or integrate externally produced [`wgpu::Texture`]s using [`slint::Image::try_from<wgpu::Texture>()`](i_slint_core::graphics::Image::try_from).
@@ -470,13 +470,13 @@ pub mod wgpu_25 {
470
470
//!
471
471
//! `Cargo.toml`:
472
472
//! ```toml
473
-
//! slint = { version = "~1.13", features = ["unstable-wgpu-25"] }
473
+
//! slint = { version = "~1.13", features = ["unstable-wgpu-26"] }
0 commit comments