create_program_with_builtin_kernels

Function create_program_with_builtin_kernels 

Source
pub unsafe fn create_program_with_builtin_kernels(
    context: cl_context,
    devices: &[cl_device_id],
    kernel_names: &CStr,
) -> Result<cl_program, cl_int>
Expand description

Create an OpenCL program object for a context and loads the information related to the built-in kernels into that object.

Calls clCreateProgramWithBuiltInKernels to create an OpenCL program object.

  • context - a valid OpenCL context.
  • devices - a slice of devices that are in context.
  • kernel_names - a semi-colon separated list of built-in kernel names.

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

ยงSafety

This is unsafe when a device is not a member of context.