[][src]Function opencl3::command_queue::create_command_queue_with_properties

pub fn create_command_queue_with_properties(
    context: *mut c_void,
    device: *mut c_void,
    properties: *const u64
) -> Result<*mut c_void, i32>

Create an OpenCL host or device command-queue on a specific device.
Calls clCreateCommandQueueWithProperties to create an OpenCL context.
CL_VERSION_2_0 onwards.

  • context - a valid OpenCL context.
  • device - a device or sub-device associated with context.
  • properties - a null terminated list of properties for the command-queue, see cl_queue_properties.

returns a Result containing the new OpenCL command-queue or the error code from the OpenCL C API function.