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
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.