1
0
Fork 0
forked from wry/wry
wry/src/drm/dma.rs
2022-02-06 16:33:54 +01:00

17 lines
312 B
Rust

use std::rc::Rc;
use crate::format::Format;
use uapi::OwnedFd;
pub struct DmaBufPlane {
pub offset: u32,
pub stride: u32,
pub fd: Rc<OwnedFd>,
}
pub struct DmaBuf {
pub width: i32,
pub height: i32,
pub format: &'static Format,
pub modifier: u64,
pub planes: Vec<DmaBufPlane>,
}