pub struct SurfmanLayerManager {
layers: Vec<(ContextId, LayerId)>,
swap_chains: SwapChains<LayerId, Device>,
surface_textures: HashMap<LayerId, SurfaceTexture>,
depth_stencil_textures: HashMap<LayerId, Option<NativeTexture>>,
viewports: Viewports,
clearer: GlClearer,
}Fields§
§layers: Vec<(ContextId, LayerId)>§swap_chains: SwapChains<LayerId, Device>§surface_textures: HashMap<LayerId, SurfaceTexture>§depth_stencil_textures: HashMap<LayerId, Option<NativeTexture>>§viewports: Viewports§clearer: GlClearerImplementations§
Source§impl SurfmanLayerManager
impl SurfmanLayerManager
pub fn new( viewports: Viewports, swap_chains: SwapChains<LayerId, SurfmanDevice>, ) -> SurfmanLayerManager
Trait Implementations§
Source§impl LayerManagerAPI<SurfmanGL> for SurfmanLayerManager
impl LayerManagerAPI<SurfmanGL> for SurfmanLayerManager
fn create_layer( &mut self, contexts: &mut dyn GLContexts<SurfmanGL>, context_id: ContextId, init: LayerInit, ) -> Result<LayerId, Error>
fn destroy_layer( &mut self, contexts: &mut dyn GLContexts<SurfmanGL>, context_id: ContextId, layer_id: LayerId, )
fn layers(&self) -> &[(ContextId, LayerId)]
fn begin_frame( &mut self, contexts: &mut dyn GLContexts<SurfmanGL>, layers: &[(ContextId, LayerId)], ) -> Result<Vec<SubImages>, Error>
fn end_frame( &mut self, contexts: &mut dyn GLContexts<SurfmanGL>, layers: &[(ContextId, LayerId)], ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for SurfmanLayerManager
impl RefUnwindSafe for SurfmanLayerManager
impl !Send for SurfmanLayerManager
impl !Sync for SurfmanLayerManager
impl Unpin for SurfmanLayerManager
impl UnsafeUnpin for SurfmanLayerManager
impl UnwindSafe for SurfmanLayerManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert