Function opencl3::program::create_program_with_binary[][src]

pub fn create_program_with_binary(
    context: *mut c_void,
    devices: &[*mut c_void],
    binaries: &[&[u8]]
) -> Result<*mut c_void, i32>
Expand description

Create an OpenCL program object for a context and load binary bits into that object.
Calls clCreateProgramWithBinary to create an OpenCL program object.

  • context - a valid OpenCL context.
  • devices - a slice of devices that are in context.
  • binaries - a slice of program binaries slices.

returns a Result containing the new OpenCL program object or the error code from the OpenCL C API function.