pub struct DmaBufPlane {
pub resource_id: u32,
pub offset: u32,
pub stride: u32,
pub modifier_hi: u32,
pub modifier_lo: u32,
}Expand description
Single plane of a DMA-BUF.
Multi-planar formats (e.g., NV12) have one plane per component. Most RGB formats use a single plane.
Fields§
§resource_id: u32Virtio-GPU resource ID (VeridianOS DMA-BUF handle).
On Linux this would be a file descriptor; on VeridianOS we use the virtio-gpu resource ID directly.
offset: u32Byte offset into the resource where this plane starts
stride: u32Byte stride (distance between rows) for this plane
modifier_hi: u32Upper 32 bits of the 64-bit format modifier
modifier_lo: u32Lower 32 bits of the 64-bit format modifier
Implementations§
Source§impl DmaBufPlane
impl DmaBufPlane
Trait Implementations§
Source§impl Clone for DmaBufPlane
impl Clone for DmaBufPlane
Source§fn clone(&self) -> DmaBufPlane
fn clone(&self) -> DmaBufPlane
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DmaBufPlane
impl Debug for DmaBufPlane
impl Copy for DmaBufPlane
Auto Trait Implementations§
impl Freeze for DmaBufPlane
impl RefUnwindSafe for DmaBufPlane
impl Send for DmaBufPlane
impl Sync for DmaBufPlane
impl Unpin for DmaBufPlane
impl UnwindSafe for DmaBufPlane
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)