Struct wgpu::SurfaceTexture[][src]

pub struct SurfaceTexture {
    pub texture: Texture,
    pub suboptimal: bool,
    // some fields omitted
}
Expand description

Surface texture that can be rendered to. Result of a successful call to Surface::get_current_texture.

Fields

texture: Texture

Accessible view of the frame.

suboptimal: bool

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

Implementations

Schedule this texture to be presented on the owning surface.

Needs to be called after any work on the texture is scheduled via Queue::submit.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. 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.