pub struct Gpu2d<'d, T: Instance> { /* private fields */ }Expand description
GPU2D driver.
Implementations§
Source§impl<'d, T: Instance> Gpu2d<'d, T>
impl<'d, T: Instance> Gpu2d<'d, T>
Sourcepub fn new(
peri: Peri<'d, T>,
_irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd,
) -> Self
pub fn new( peri: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, ) -> Self
Create a GPU2D instance.
Sourcepub fn last_command_list_id(&self) -> u32
pub fn last_command_list_id(&self) -> u32
Last completed command list identifier.
Sourcepub fn command_list_complete(&self) -> bool
pub fn command_list_complete(&self) -> bool
Returns true when the command-list-complete flag is set.
Sourcepub fn clear_command_list_complete(&mut self)
pub fn clear_command_list_complete(&mut self)
Clear the command-list-complete flag.
Sourcepub fn take_error(&mut self) -> Result<(), Error>
pub fn take_error(&mut self) -> Result<(), Error>
Read and clear error status.
Auto Trait Implementations§
impl<'d, T> Freeze for Gpu2d<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for Gpu2d<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Gpu2d<'d, T>where
T: Send,
impl<'d, T> Sync for Gpu2d<'d, T>where
T: Sync,
impl<'d, T> Unpin for Gpu2d<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for Gpu2d<'d, T>
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