[][src]Trait surfman_chains::SwapChainAPI

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

The consumer's view of a swap chain

Associated Types

type Surface

Loading content...

Required methods

fn take_surface(&self) -> Option<Self::Surface>

Take the current front buffer.

fn recycle_surface(&self, surface: Self::Surface)

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. Called by a consumer.

fn recycle_surface(&self, surface: Device::Surface)[src]

Recycle the current front buffer. Called by a consumer.

Loading content...