Struct wgpu::SwapChain[][src]

pub struct SwapChain { /* fields omitted */ }
Expand description

Handle to a swap chain.

A SwapChain represents the image or series of images that will be presented to a Surface. A SwapChain may be created with Device::create_swap_chain.

Implementations

Returns the next texture to be presented by the swapchain for drawing.

When the SwapChainFrame returned by this method is dropped, the swapchain will present the texture to the associated Surface.

If a SwapChainFrame referencing this surface is alive when the swapchain is recreated, recreating the swapchain will panic.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.