pub struct GpuDisplayFramebuffer<'a> {
pub(crate) framebuffer: VolatileSlice<'a>,
pub(crate) slice: VolatileSlice<'a>,
pub(crate) stride: u32,
pub(crate) bytes_per_pixel: u32,
}Fields§
§framebuffer: VolatileSlice<'a>§slice: VolatileSlice<'a>§stride: u32§bytes_per_pixel: u32Implementations§
Source§impl<'a> GpuDisplayFramebuffer<'a>
impl<'a> GpuDisplayFramebuffer<'a>
pub(crate) fn new( framebuffer: VolatileSlice<'a>, stride: u32, bytes_per_pixel: u32, ) -> GpuDisplayFramebuffer<'a>
pub(crate) fn sub_region( &self, x: u32, y: u32, width: u32, height: u32, ) -> Option<GpuDisplayFramebuffer<'a>>
pub fn as_volatile_slice(&self) -> VolatileSlice<'a>
pub fn stride(&self) -> u32
Trait Implementations§
Source§impl<'a> Clone for GpuDisplayFramebuffer<'a>
impl<'a> Clone for GpuDisplayFramebuffer<'a>
Source§fn clone(&self) -> GpuDisplayFramebuffer<'a>
fn clone(&self) -> GpuDisplayFramebuffer<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<ANativeWindow_Buffer> for GpuDisplayFramebuffer<'_>
impl From<ANativeWindow_Buffer> for GpuDisplayFramebuffer<'_>
Source§fn from(anb: ANativeWindow_Buffer) -> Self
fn from(anb: ANativeWindow_Buffer) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for GpuDisplayFramebuffer<'a>
impl<'a> RefUnwindSafe for GpuDisplayFramebuffer<'a>
impl<'a> Send for GpuDisplayFramebuffer<'a>
impl<'a> Sync for GpuDisplayFramebuffer<'a>
impl<'a> Unpin for GpuDisplayFramebuffer<'a>
impl<'a> !UnwindSafe for GpuDisplayFramebuffer<'a>
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