Function crispy::egl::import_dmabuf

source ·
pub fn import_dmabuf(
    egl: &impl EglContext,
    fd: BorrowedFd<'_>,
    dimensions: (u32, u32),
    fourcc: Format,
) -> Result<DmabufImage, Box<dyn Error>>
Expand description

If you intend to import a surface as a rendering target, better use ARGB8888. Otherwise the config won’t match.