[][src]Trait gfx_core::SwapChain

pub trait SwapChain {
    fn acquire_frame(&mut self) -> Frame;
fn present(&mut self); }

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

Required methods

fn acquire_frame(&mut self) -> Frame

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

fn present(&mut self)

Present one acquired frame in FIFO order.

Loading content...

Implementors

Loading content...