Function opencl3::program::create_program_with_builtin_kernels [−][src]
pub fn create_program_with_builtin_kernels(
context: *mut c_void,
devices: &[*mut c_void],
kernel_names: &CStr
) -> Result<*mut c_void, i32>
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.