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]
impl Queue
pub fn new(
context: &Context,
device: Device,
properties: Option<CommandQueueProperties>
) -> OclResult<Queue>
[src]
pub fn new(
context: &Context,
device: Device,
properties: Option<CommandQueueProperties>
) -> OclResult<Queue>
Returns a new Queue on the device specified by device
.
pub fn flush(&self) -> OclResult<()>
[src]
pub fn flush(&self) -> OclResult<()>
Issues all previously queued OpenCL commands to the device.
pub fn finish(&self) -> OclResult<()>
[src]
pub fn finish(&self) -> OclResult<()>
Blocks until all commands in this queue have completed before returning.
pub fn enqueue_marker<Ewl>(&self, ewait: Option<Ewl>) -> OclResult<Event> where
Ewl: ClWaitListPtr,
[src]
pub fn enqueue_marker<Ewl>(&self, ewait: Option<Ewl>) -> OclResult<Event> where
Ewl: ClWaitListPtr,
Enqueues a marker command which waits for either a list of events to complete, or all previously enqueued commands to complete.
pub fn as_core(&self) -> &CommandQueueCore
[src]
pub fn as_core(&self) -> &CommandQueueCore
Returns a reference to the core pointer wrapper, usable by functions in
the core
module.
pub fn context(&self) -> Context
[src]
pub fn context(&self) -> Context
Returns a copy of the Context associated with this queue.
pub fn device(&self) -> Device
[src]
pub fn device(&self) -> Device
Returns the OpenCL
device associated with this queue.
pub fn device_version(&self) -> OpenclVersion
[src]
pub fn device_version(&self) -> OpenclVersion
Returns the cached device version.
pub fn info(
&self,
info_kind: CommandQueueInfo
) -> OclCoreResult<CommandQueueInfoResult>
[src]
pub fn info(
&self,
info_kind: CommandQueueInfo
) -> OclCoreResult<CommandQueueInfoResult>
Returns info about this queue.
Methods from Deref<Target = CommandQueueCore>
pub fn as_ptr(&self) -> *mut c_void
[src]
pub fn as_ptr(&self) -> *mut c_void
Returns a pointer, do not store it.
pub fn device(&self) -> Result<DeviceId, Error>
[src]
pub fn device(&self) -> Result<DeviceId, Error>
Returns the DeviceId
associated with this command queue.
pub fn context(&self) -> Result<Context, Error>
[src]
pub fn context(&self) -> Result<Context, Error>
Returns the Context
associated with this command queue.
pub fn context_ptr(&self) -> Result<*mut c_void, Error>
[src]
pub 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]
impl Clone for Queue
fn clone(&self) -> Queue
[src]
fn clone(&self) -> Queue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Queue
[src]
impl Debug for Queue
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Queue
[src]
impl Display for Queue
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl AsRef<Queue> for Queue
[src]
impl AsRef<Queue> for Queue
impl AsRef<CommandQueueCore> for Queue
[src]
impl AsRef<CommandQueueCore> for Queue
fn as_ref(&self) -> &CommandQueueCore
[src]
fn as_ref(&self) -> &CommandQueueCore
Performs the conversion.
impl Deref for Queue
[src]
impl Deref for Queue
type Target = CommandQueueCore
The resulting type after dereferencing.
fn deref(&self) -> &CommandQueueCore
[src]
fn deref(&self) -> &CommandQueueCore
Dereferences the value.
impl DerefMut for Queue
[src]
impl DerefMut for Queue
fn deref_mut(&mut self) -> &mut CommandQueueCore
[src]
fn deref_mut(&mut self) -> &mut CommandQueueCore
Mutably dereferences the value.
impl<'a> ClContextPtr for &'a Queue
[src]
impl<'a> ClContextPtr for &'a Queue
fn as_ptr(&self) -> cl_context
[src]
fn as_ptr(&self) -> cl_context