Skip to main content

Module wgpu_surface

Module wgpu_surface 

Source
Expand description

Hardware wgpu swapchain surface presenter and offscreen GPU bridge for strata_platform.

Supports uncapped presentation (PresentMode::Immediate, AutoNoVsync, Mailbox), persistent cached 2D HUD overlay compositing (ui_overlay_texture), and graceful fallback when running headless without a windowing GPU surface.

Structs§

WgpuSwapchainPresenter
Hardware wgpu Swapchain Presenter wiring UnifiedGpuCollector, GpuStencilClipPipeline, and Wgpu2DRenderer into strata_platform’s swapchain layer.
WgpuWindowPresenter
Hardware wgpu window surface presenter managing 3D rendering, hardware 2D/stencil-clip Wgpu2DRenderer batches, offscreen 3D scene caching, and cached 2D HUD compositing.

Functions§

render_scene_3d_wgpu_bgra
Renders scene into BGRA8 pixels on a cached thread-local Wgpu3DRenderer.
select_wgpu_present_mode
Maps platform PresentMode to the best supported wgpu::PresentMode.