Skip to main content

Module surface

Module surface 

Source
Expand description

Advanced extension API: swapchain surface and depth buffer.

Extension API for custom crate::drawable::WgpuDrawable implementations; not re-exported in crate::prelude and may change between releases.

SurfaceState manages the wgpu swapchain for the active winit window. DepthTexture provides a shared depth buffer used by both the UI geometry pass and glyphon text.

Structsยง

DepthTexture
Depth buffer used by the UI geometry and glyphon text passes.
SurfaceState
Swapchain surface and configuration for the active window.