Struct fil_ocl::Queue[][src]

pub struct Queue { /* fields omitted */ }

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

Implementations

impl Queue[src]

pub fn new(
    context: &Context,
    device: Device,
    properties: Option<CommandQueueProperties>
) -> OclResult<Queue>
[src]

Returns a new Queue on the device specified by device.

pub fn flush(&self) -> OclResult<()>[src]

Issues all previously queued OpenCL commands to the device.

pub fn finish(&self) -> OclResult<()>[src]

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]

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]

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

pub fn context(&self) -> Context[src]

Returns a copy of the Context associated with this queue.

pub fn device(&self) -> Device[src]

Returns the OpenCL device associated with this queue.

pub fn device_version(&self) -> OpenclVersion[src]

Returns the cached device version.

pub fn info(
    &self,
    info_kind: CommandQueueInfo
) -> OclCoreResult<CommandQueueInfoResult>
[src]

Returns info about this queue.

Methods from Deref<Target = CommandQueueCore>

pub fn as_ptr(&self) -> *mut c_void[src]

Returns a pointer, do not store it.

pub fn device(&self) -> Result<DeviceId, Error>[src]

Returns the DeviceId associated with this command queue.

pub fn context(&self) -> Result<Context, Error>[src]

Returns the Context associated with this command queue.

pub fn context_ptr(&self) -> Result<*mut c_void, Error>[src]

Returns the cl_context associated with this command queue.

Trait Implementations

impl AsRef<CommandQueue> for Queue[src]

impl AsRef<Queue> for Queue[src]

impl<'a> ClContextPtr for &'a Queue[src]

impl Clone for Queue[src]

impl Debug for Queue[src]

impl Deref for Queue[src]

type Target = CommandQueueCore

The resulting type after dereferencing.

impl DerefMut for Queue[src]

impl Display for Queue[src]

Auto Trait Implementations

impl RefUnwindSafe for Queue

impl Send for Queue

impl Sync for Queue

impl Unpin for Queue

impl UnwindSafe for Queue

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.