truce_gpu/platform.rs
1//! Platform window bridging for baseview.
2//!
3//! Re-exports the canonical helpers from `truce_gui::platform` so this
4//! crate's call sites can keep using `crate::platform::Foo` while the
5//! actual rwh-0.5 to rwh-0.6 bridge, the `ParentWindow` newtype, and
6//! the wgpu surface constructor live in one place. truce-gui's copy
7//! is the canonical one; every GUI backend reads through these
8//! re-exports so platform behaviour stays uniform.
9
10pub use truce_gui::platform::{ParentWindow, query_backing_scale};
11// `create_wgpu_surface` constructs from a baseview window handle;
12// not available on iOS (the iOS path builds its surface directly
13// from the CAMetalLayer-backed UIView in `truce-gui::editor_ios`).
14#[cfg(not(target_os = "ios"))]
15pub use truce_gui::platform::create_wgpu_surface;