pub struct CompatGlClear { /* private fields */ }Expand description
Minimal GL entry points needed for legal hardware framebuffer setup.
This intentionally loads only framebuffer binding, viewport, and clear calls so cores can present a hardware frame before probing shader, texture, or product-renderer symbol coverage.
Implementations§
Source§impl CompatGlClear
impl CompatGlClear
pub fn init(runtime: &Runtime<'_>) -> Result<Self, String>
pub fn context_type(&self) -> HwContextType
pub fn version_info(&self) -> GlVersionInfo
pub fn clear_color(&self, r: f32, g: f32, b: f32, a: f32)
pub fn clear_color_depth_buffer(&self)
pub fn viewport(&self, rect: GlRect) -> Result<(), String>
pub fn unbind_framebuffer(&self, target: GlFramebufferTarget)
pub fn bind_framebuffer( &self, target: GlFramebufferTarget, framebuffer: Option<GlFramebuffer>, ) -> Result<(), String>
pub fn check_no_error(&self, operation: &str) -> Result<(), String>
pub fn check_bound_framebuffer_complete( &self, target: GlFramebufferTarget, ) -> Result<(), String>
pub fn from_glsym(gl: glsym) -> Self
Trait Implementations§
Source§impl Clone for CompatGlClear
impl Clone for CompatGlClear
Source§fn clone(&self) -> CompatGlClear
fn clone(&self) -> CompatGlClear
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompatGlClear
Auto Trait Implementations§
impl Freeze for CompatGlClear
impl RefUnwindSafe for CompatGlClear
impl Send for CompatGlClear
impl Sync for CompatGlClear
impl Unpin for CompatGlClear
impl UnsafeUnpin for CompatGlClear
impl UnwindSafe for CompatGlClear
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