Struct wgpu::SurfaceFrame[][src]

pub struct SurfaceFrame {
    pub output: SurfaceTexture,
    pub suboptimal: bool,
}
Expand description

Result of a successful call to Surface::get_current_frame.

Fields

output: SurfaceTexture

The texture into which the next frame should be rendered.

suboptimal: bool

true if the acquired buffer can still be used for rendering, but should be recreated for maximum performance.

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.