Struct ocl::Queue
[−]
[src]
pub struct Queue { /* fields omitted */ }
A command queue which manages all actions taken on kernels, buffers, and images.
Methods
impl Queue
[src]
fn new(
context: &Context,
device: Device,
properties: Option<CommandQueueProperties>
) -> OclResult<Queue>
context: &Context,
device: Device,
properties: Option<CommandQueueProperties>
) -> OclResult<Queue>
Returns a new Queue on the device specified by device
.
fn flush(&self) -> OclResult<()>
Issues all previously queued OpenCL commands to the device.
fn finish(&self) -> OclResult<()>
Blocks until all commands in this queue have completed before returning.
fn enqueue_marker<Ewl>(&self, ewait: Option<Ewl>) -> OclResult<Event> where
Ewl: ClWaitListPtr,
Ewl: ClWaitListPtr,
Enqueues a marker command which waits for either a list of events to complete, or all previously enqueued commands to complete.
fn core_as_ref(&self) -> &CommandQueueCore
: Use ::core
instead.
Returns a reference to the core pointer wrapper, usable by functions in
the core
module.
fn core(&self) -> &CommandQueueCore
Returns a reference to the core pointer wrapper, usable by functions in
the core
module.
fn context(&self) -> Context
Returns a copy of the Context associated with this queue.
fn device(&self) -> Device
Returns the OpenCL
device associated with this queue.
fn device_version(&self) -> OpenclVersion
Returns the cached device version.
fn info(&self, info_kind: CommandQueueInfo) -> CommandQueueInfoResult
Returns info about this queue.
Methods from Deref<Target = CommandQueueCore>
fn as_ptr(&self) -> *mut c_void
Returns a pointer, do not store it.
fn device(&self) -> Result<DeviceId, Error>
Returns the DeviceId
associated with this command queue.
fn context(&self) -> Result<Context, Error>
Returns the Context
associated with this command queue.
fn context_ptr(&self) -> Result<*mut c_void, Error>
Returns the cl_context
associated with this command queue.
Trait Implementations
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 Debug for Queue
[src]
impl Display for Queue
[src]
impl AsRef<Queue> for Queue
[src]
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