Struct webxr::surfman_layer_manager::SurfmanLayerManager
source · 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: GlClearer
Implementations§
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, device: &mut SurfmanDevice, contexts: &mut dyn GLContexts<SurfmanGL>, context_id: ContextId, init: LayerInit, ) -> Result<LayerId, Error>
fn destroy_layer( &mut self, device: &mut SurfmanDevice, contexts: &mut dyn GLContexts<SurfmanGL>, context_id: ContextId, layer_id: LayerId, )
fn layers(&self) -> &[(ContextId, LayerId)]
fn begin_frame( &mut self, device: &mut SurfmanDevice, contexts: &mut dyn GLContexts<SurfmanGL>, layers: &[(ContextId, LayerId)], ) -> Result<Vec<SubImages>, Error>
fn end_frame( &mut self, device: &mut SurfmanDevice, 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 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