pub(crate) struct GlClearer {
fbos: HashMap<(LayerId, Option<NativeTexture>, Option<NativeTexture>), Option<NativeFramebuffer>>,
should_reverse_winding: bool,
}
Fields§
§fbos: HashMap<(LayerId, Option<NativeTexture>, Option<NativeTexture>), Option<NativeFramebuffer>>
§should_reverse_winding: bool
Implementations§
source§impl GlClearer
impl GlClearer
pub(crate) fn new(should_reverse_winding: bool) -> GlClearer
fn fbo( &mut self, gl: &Gl, layer_id: LayerId, color: Option<NativeTexture>, color_target: u32, depth_stencil: Option<NativeTexture>, ) -> Option<NativeFramebuffer>
pub(crate) fn clear( &mut self, device: &mut SurfmanDevice, contexts: &mut dyn GLContexts<SurfmanGL>, context_id: ContextId, layer_id: LayerId, color: Option<NativeTexture>, color_target: u32, depth_stencil: Option<NativeTexture>, )
pub(crate) fn destroy_layer( &mut self, device: &mut SurfmanDevice, contexts: &mut dyn GLContexts<SurfmanGL>, context_id: ContextId, layer_id: LayerId, )
Auto Trait Implementations§
impl Freeze for GlClearer
impl RefUnwindSafe for GlClearer
impl Send for GlClearer
impl Sync for GlClearer
impl Unpin for GlClearer
impl UnwindSafe for GlClearer
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