Trait gfx_core::SwapChain [] [src]

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

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

Present one acquired frame in FIFO order.

Implementors