[−][src]Function opencl3::command_queue::create_command_queue
pub fn create_command_queue(
context: *mut c_void,
device: *mut c_void,
properties: u64
) -> Result<*mut c_void, i32>
Create an OpenCL host or device command-queue on a specific device.
Calls clCreateCommandQueue to create an OpenCL context.
Deprecated in CL_VERSION_2_0 by create_command_queue_with_properties.
context
- a valid OpenCL context.device
- a device or sub-device associated with context.properties
- a list of properties for the command-queue, see cl_command_queue_properties.
returns a Result containing the new OpenCL command-queue or the error code from the OpenCL C API function.