Struct ocl::Queue
[−]
[src]
pub struct Queue { // some fields omitted }
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 creating
context. For a list of these devices, call
context.device_ids(). If
device_idxis out of range, it will automatically 'wrap around' via a modulo operation and therefore is valid up to the limit of
usize. See the documentation for
Context` 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]
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