Function opencl3::program::create_program_with_source [−][src]
pub fn create_program_with_source(
context: *mut c_void,
sources: &[&str]
) -> Result<*mut c_void, i32>
Expand description
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.