Trait surfman_chains::SwapChainAPI [−][src]
The consumer’s view of a swap chain
Associated Types
Loading content...Required methods
pub fn take_surface(&self) -> Option<Self::Surface>
[src]
Take the current front buffer.
pub fn recycle_surface(&self, surface: Self::Surface)
[src]
Recycle the current front buffer.
Implementors
impl<Device> SwapChainAPI for SwapChain<Device> where
Device: 'static + DeviceAPI,
Device::Surface: Send,
[src]
Device: 'static + DeviceAPI,
Device::Surface: Send,
type Surface = Device::Surface
fn take_surface(&self) -> Option<Device::Surface>
[src]
Take the current front buffer. Returns the most recent recycled surface if there is no current front buffer. Called by a consumer.
fn recycle_surface(&self, surface: Device::Surface)
[src]
Recycle the current front buffer. Called by a consumer.