Function ocl_core::get_supported_image_formats [] [src]

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

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)