Function ocl_core::get_supported_image_formats [] [src]

pub fn get_supported_image_formats(context: &Context,
                                   flags: MemFlags,
                                   image_type: MemObjectType)
                                   -> OclResult<Vec<ImageFormat>>

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)