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
[src]
Acquire a new frame for rendering. This needs to be called before presenting.
fn present(&mut self)
[src]
Present one acquired frame in FIFO order.