Struct opencl3::command_queue::CommandQueue[][src]

pub struct CommandQueue { /* fields omitted */ }
Expand description

An OpenCL command-queue.
Operations on OpenCL memory and kernel objects are performed using a command-queue.

Implementations

Get the underlying OpenCL cl_command_queue.

Get the max_work_item_dimensions for the device that the underlying OpenCL device.

Create an OpenCL command-queue on a specific device.
Queries the device the max_work_item_dimensions.
Deprecated in CL_VERSION_2_0 by create_command_queue_with_properties.

  • context - a valid OpenCL context.
  • device_id - 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 CommandQueue or the error code from the OpenCL C API function.

Create an OpenCL command-queue on a specific device.
Queries the device the max_work_item_dimensions.
CL_VERSION_2_0 onwards.

  • context - a valid OpenCL context.
  • device_id - 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 CommandQueue or the error code from the OpenCL C API function.

Flush commands to a device.
returns an empty Result or the error code from the OpenCL C API function.

Wait for completion of commands on a device.
returns an empty Result or the error code from the OpenCL C API function.

CL_VERSION_2_0

CL_VERSION_2_1

CL_VERSION_3_0

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.