Struct rutabaga_gfx::rutabaga_gralloc::minigbm::MinigbmBuffer
source · pub struct MinigbmBuffer {
bo: *mut gbm_bo,
_device: MinigbmDevice,
}
Expand description
An allocation from a MinigbmDevice
.
Fields§
§bo: *mut gbm_bo
§_device: MinigbmDevice
Implementations§
source§impl MinigbmBuffer
impl MinigbmBuffer
sourcepub fn format_modifier(&self) -> u64
pub fn format_modifier(&self) -> u64
DrmFormat modifier flags for the buffer.
sourcepub fn num_planes(&self) -> usize
pub fn num_planes(&self) -> usize
Number of planes present in this buffer.
sourcepub fn plane_offset(&self, plane: usize) -> u32
pub fn plane_offset(&self, plane: usize) -> u32
Offset in bytes for the given plane.
sourcepub fn plane_stride(&self, plane: usize) -> u32
pub fn plane_stride(&self, plane: usize) -> u32
Length in bytes of one row for the given plane.
sourcepub fn export(&self) -> RutabagaResult<File>
pub fn export(&self) -> RutabagaResult<File>
Exports a new dmabuf/prime file descriptor.
Trait Implementations§
source§impl Drop for MinigbmBuffer
impl Drop for MinigbmBuffer
impl Send for MinigbmBuffer
impl Sync for MinigbmBuffer
Auto Trait Implementations§
impl RefUnwindSafe for MinigbmBuffer
impl Unpin for MinigbmBuffer
impl UnwindSafe for MinigbmBuffer
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