Trait surfman::chains::SwapChainAPI
source · 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§
sourcefn take_surface(&self) -> Option<Self::Surface>
fn take_surface(&self) -> Option<Self::Surface>
Take the current front buffer.
sourcefn recycle_surface(&self, surface: Self::Surface)
fn recycle_surface(&self, surface: Self::Surface)
Recycle the current front buffer.
Object Safety§
This trait is not object safe.