Struct ocl::Queue

source ·
pub struct Queue { /* private fields */ }
Expand description

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

Implementations§

source§

impl Queue

source

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

Returns a new Queue on the device specified by device.

source

pub fn flush(&self) -> OclResult<()>

Issues all previously queued OpenCL commands to the device.

source

pub fn finish(&self) -> OclResult<()>

Blocks until all commands in this queue have completed before returning.

source

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.

source

pub fn as_core(&self) -> &CommandQueueCore

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

source

pub fn context(&self) -> Context

Returns a copy of the Context associated with this queue.

source

pub fn device(&self) -> Device

Returns the OpenCL device associated with this queue.

source

pub fn device_version(&self) -> OpenclVersion

Returns the cached device version.

source

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

Returns info about this queue.

Methods from Deref<Target = CommandQueueCore>§

source

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

Returns a pointer, do not store it.

source

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

Returns the DeviceId associated with this command queue.

source

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

Returns the Context associated with this command queue.

source

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

Returns the cl_context associated with this command queue.

Trait Implementations§

source§

impl AsRef<CommandQueue> for Queue

source§

fn as_ref(&self) -> &CommandQueueCore

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Queue> for Queue

source§

fn as_ref(&self) -> &Queue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<'a> ClContextPtr for &'a Queue

source§

impl Clone for Queue

source§

fn clone(&self) -> Queue

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Queue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Queue

§

type Target = CommandQueue

The resulting type after dereferencing.
source§

fn deref(&self) -> &CommandQueueCore

Dereferences the value.
source§

impl DerefMut for Queue

source§

fn deref_mut(&mut self) -> &mut CommandQueueCore

Mutably dereferences the value.
source§

impl Display for Queue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Queue

§

impl RefUnwindSafe for Queue

§

impl Send for Queue

§

impl Sync for Queue

§

impl Unpin for Queue

§

impl UnwindSafe for Queue

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.