pub fn get_supported_image_formats<C>(
    context: C,
    flags: MemFlags,
    image_type: MemObjectType
) -> Result<Vec<ImageFormatParseResult>>where
    C: ClContextPtr,
Expand description

Returns a list of supported image formats.

Example

let context = Context::builder().build().unwrap();

let img_fmts = core::get_supported_image_formats(context,
   core::MEM_READ_WRITE, core::MemObjectType::Image2d)