Expand description
Windowed wgpu surface — swap-chain context for real-time rendering.
SurfaceContext wraps a wgpu::Surface created from a raw OS window
handle alongside the Device, Queue, and swap-chain configuration
needed for real-time frame presentation.
§Safety
Creating a SurfaceContext requires raw window/display handles whose
lifetime the caller must manage. See SurfaceContext::from_raw_handles.
Structs§
- Surface
Config - Configuration for a
SurfaceContextswap-chain. - Surface
Context - A windowed GPU context: device, queue, surface, and swap-chain config.