[][src]Function opencl3::memory::get_supported_image_formats

pub fn get_supported_image_formats(
    context: *mut c_void,
    flags: u64,
    image_type: u32
) -> Result<Vec<cl_image_format, Global>, i32>

Get the list of image formats supported by an OpenCL implementation for a specified context, image type, and allocation information.
Calls clGetSupportedImageFormats to get the desired information about the program.

  • context - a valid OpenCL context on which the image object(s) will be created.
  • flags - a bit-field used to specify allocation and usage information about the image memory object being created, see: Memory Flags.
  • image_type - describes the image type.

returns a Result containing the desired information in an InfoType enum or the error code from the OpenCL C API function.