pub(crate) struct GlClearer {
fbos: HashMap<(LayerId, GLuint, Option<GLuint>), GLuint>,
}
Fields§
§fbos: HashMap<(LayerId, GLuint, Option<GLuint>), GLuint>
Implementations§
source§impl GlClearer
impl GlClearer
pub(crate) fn new() -> GlClearer
fn fbo( &mut self, gl: &Gl, layer_id: LayerId, color: GLuint, color_target: GLuint, depth_stencil: Option<GLuint> ) -> GLuint
pub(crate) fn clear( &mut self, device: &mut SurfmanDevice, contexts: &mut dyn GLContexts<SurfmanGL>, context_id: ContextId, layer_id: LayerId, color: GLuint, color_target: GLuint, depth_stencil: Option<GLuint> )
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 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