Struct ocl::Queue [] [src]

pub struct Queue {
    // some fields omitted
}

A command queue which manages all actions taken on kernels, buffers, and images.

Destruction

Underlying queue object is destroyed automatically.

Methods

impl Queue
[src]

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

Returns a new Queue on the device specified by device.

fn finish(&self)

Blocks until all commands in this queue have completed before returning.

fn core_as_ref(&self) -> &CommandQueueCore

Returns a reference to the core pointer wrapper, usable by functions in the core module.

fn context_core_as_ref(&self) -> &ContextCore

Returns a reference to the core pointer wrapper of the context associated with this queue, usable by functions in the core module.

fn device(&self) -> &Device

Returns the OpenCL device associated with this queue.

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

Returns info about this queue.

Methods from Deref<Target=CommandQueueCore>

unsafe fn as_ptr(&self) -> cl_command_queue

Returns a pointer, do not store it.

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.

impl AsRef<CommandQueueCore> for Queue
[src]

fn as_ref(&self) -> &CommandQueueCore

Performs the conversion.

impl Deref for Queue
[src]

type Target = CommandQueueCore

The resulting type after dereferencing

fn deref(&self) -> &CommandQueueCore

The method called to dereference a value

impl DerefMut for Queue
[src]

fn deref_mut(&mut self) -> &mut CommandQueueCore

The method called to mutably dereference a value