Trait SwapChain

Source
pub trait SwapChain {
    // Required methods
    fn acquire_frame(&mut self) -> Frame;
    fn present(&mut self);
}
Expand description

The SwapChain is the backend representation of the surface. It consists of multiple buffers, which will be presented on the surface.

Required Methods§

Source

fn acquire_frame(&mut self) -> Frame

Acquire a new frame for rendering. This needs to be called before presenting.

Source

fn present(&mut self)

Present one acquired frame in FIFO order.

Implementors§