pub struct Surface<RenderBackend: Backend> { /* private fields */ }
Expand description

Defines a surface that can be rendered on to.

Implementations§

Apply a swapchain to the current surface. This is required whenever a swapchain has been invalidated (I.E. by window resizing)

Remove the swapchain configuration that this surface used on this given GPU.

Destroy the current surface and it’s underlying resources.

Get the size of the surface’s extent. Will only return a size if a swapchain has been applied to the surface to render with.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.