Expand description
Platform window bridging for baseview / wgpu.
WgpuBackend::from_window consumes a baseview::Window; that
window exposes raw-window-handle 0.5 handles but wgpu wants 0.6,
so the bridge re-encodes per platform here. Lives in truce-gpu
so the wgpu pipeline crate is self-contained; the per-OS
HWND/NSView lookups + DPI queries live next door in
truce_gui::platform.
Functions§
- create_
wgpu_ ⚠surface - Bridge a baseview raw-window-handle 0.5 to a wgpu-compatible
SurfaceTargetUnsafeusing rwh 0.6 types.