Function cl3::program::create_program_with_source [−][src]
pub fn create_program_with_source(
context: cl_context,
sources: &[&str]
) -> Result<cl_program, cl_int>
Create an OpenCL program object for a context and load source code into that object.
Calls clCreateProgramWithSource to create an OpenCL program object.
context- a valid OpenCL context.sources- an array of slices of source code strings.
returns a Result containing the new OpenCL program object or the error code from the OpenCL C API function.