Function cl3::command_queue::create_command_queue_with_properties [−][src]
pub fn create_command_queue_with_properties(
context: cl_context,
device: cl_device_id,
properties: *const cl_queue_properties
) -> Result<cl_command_queue, cl_int>
Expand description
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.