Trait surfman_chains::SwapChainAPI[][src]

pub trait SwapChainAPI: 'static + Clone + Send {
    type Surface;
    pub fn take_surface(&self) -> Option<Self::Surface>;
pub fn recycle_surface(&self, surface: Self::Surface); }

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.

Loading content...

Implementors

impl<Device> SwapChainAPI for SwapChain<Device> where
    Device: 'static + DeviceAPI,
    Device::Surface: Send
[src]

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.

Loading content...