Struct ocl::Queue [] [src]

pub struct Queue {
    // some fields omitted
}

A command queue.

Destruction

Underlying queue object is destroyed automatically.

Methods

impl Queue
[src]

fn new(context: &Context, device: Option<Device>) -> Queue

Returns a new Queue on the device specified by device.

Not specifying device will default to the first available device associated with context.

[FIXME]: Return result.

fn new_by_device_index(context: &Context, device_idx: Option<usize>) -> Queue

Returns a new Queue on the device specified by device_idx.

'device_idxrefers to a index in the list of devices generated when creatingcontext. For a list of these devices, callcontext.device_ids(). Ifdevice_idxis out of range, it will automatically 'wrap around' via a modulo operation and therefore is valid up to the limit ofusize. See the documentation forContext` for more information.

[FIXME]: Return result.

fn finish(&self)

Blocks until all commands in this queue have completed.

fn core_as_ref(&self) -> &CommandQueueCore

Returns the OpenCL command queue object associated with this queue.

fn context_core_as_ref(&self) -> &ContextCore

Returns the OpenCL context object associated with this queue.

fn device(&self) -> &Device

Returns the OpenCL device id associated with this queue.

Not to be confused with the zero-indexed device_idx passed to ::new() when creating this queue.

fn info(&self, info_kind: CommandQueueInfo) -> CommandQueueInfoResult

Returns info about this queue.

Trait Implementations

impl Debug for Queue
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Queue
[src]

fn clone(&self) -> Queue

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Display for Queue
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.