[][src]Function fil_ocl_core::get_supported_image_formats

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

Returns a list of supported image formats.

Example

This example is not tested
let context = Context::builder().build().unwrap();

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