Skip to main content

Module surface

Module surface 

Source
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§

SurfaceConfig
Configuration for a SurfaceContext swap-chain.
SurfaceContext
A windowed GPU context: device, queue, surface, and swap-chain config.