Skip to main content

SurfaceFrame

Trait SurfaceFrame 

Source
pub trait SurfaceFrame<D: Device> {
    // Required methods
    fn view(&self) -> &D::TextureView;
    fn present(self);
}
Expand description

One acquired swapchain frame.

Required Methods§

Source

fn view(&self) -> &D::TextureView

The frame’s render-target view.

Source

fn present(self)

Presents the frame.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§