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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".