Skip to main content

import_image

Function import_image 

pub fn import_image(
    device: &Device,
    image: &DmabufRef<'_>,
) -> Result<DmabufImage, ImportError>
Expand description

Import image, a single plane, so that each commit can draw from it (DmabufImage::texture).

ยงErrors

As import, and ImportError::UnsupportedModifier when the driver does not list the layout as sampleable.