pub trait SwapChainAPI: 'static + Clone + Send {
    type Surface;

    // Required methods
    fn take_surface(&self) -> Option<Self::Surface>;
    fn recycle_surface(&self, surface: Self::Surface);
}
Expand description

The consumer’s view of a swap chain

Required Associated Types§

Required Methods§

source

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

Take the current front buffer.

source

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

Recycle the current front buffer.

Implementors§

source§

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

§

type Surface = <Device as Device>::Surface