Function crispy::egl::headless::import_dmabuf
source · pub fn import_dmabuf(
egl: &impl EglContext,
fd: DmaBuf,
dimensions: (u32, u32),
fourcc: Format,
) -> Result<OwnedDmabufImage, DmabufImportError>
Expand description
If you intend to import a surface as a rendering target, better use ARGB8888. Otherwise the config won’t match.