Module surface

Module surface 

Source
Expand description

Rendering surface abstraction.

This module provides the surface::Surface type, which represents a drawable area within a window. Surfaces integrate with graphics APIs like wgpu through the raw-window-handle trait implementations.

§Example

let mut window = Window::default().await;
let surface = window.surface().await;

// Get size and scale factor
let (size, scale) = surface.size_scale().await;

// Get handles for graphics API integration
let window_handle = surface.window_handle();
let display_handle = surface.display_handle();

Structs§

Surface
A type that can be drawn on, e.g. by wgpu.