Struct fil_ocl::Queue [−][src]
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]
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]
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]
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]
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]
&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]
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]
fn as_ref(&self) -> &CommandQueueCore
[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.
fn deref(&self) -> &CommandQueueCore
[src]
impl DerefMut for Queue
[src]
fn deref_mut(&mut self) -> &mut CommandQueueCore
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,