create_program_with_il

Function create_program_with_il 

Source
pub fn create_program_with_il(
    context: cl_context,
    il: &[u8],
) -> Result<cl_program, cl_int>
Expand description

Create an OpenCL program object for a context and load code in an intermediate language into that object. Calls clCreateProgramWithIL to create an OpenCL program object. CL_VERSION_2_1

  • context - a valid OpenCL context.
  • il - a slice of program intermediate language code.

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