[][src]Struct dynamic_ocl::queue::Queue

pub struct Queue(_);

An OpenCL command queue

Methods

impl Queue[src]

pub fn try_clone(&self) -> Result<Self>[src]

pub fn raw(&self) -> cl_command_queue[src]

Get the raw handle for this queue. Note that this handle is only a raw pointer and does not use RAII to ensure validity, so you must manually make sure that it's not released while still in use.

pub unsafe fn from_raw(handle: cl_command_queue) -> Self[src]

Wrap the given raw command queue handle

Safety

If the given handle is not a valid OpenCL queue, behavior is undefined. Additionally, the reference count must stay above zero until the wrapper is dropped (which will implicitly release the handle and decrement the reference count).

pub fn context_raw(&self) -> Result<cl_context>[src]

pub fn device_raw(&self) -> Result<cl_device_id>[src]

pub fn reference_count(&self) -> Result<cl_uint>[src]

pub fn properties(&self) -> Result<QueueProperties>[src]

pub fn size(&self) -> Result<cl_uint>[src]

pub fn device_default_raw(&self) -> Result<cl_command_queue>[src]

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

pub fn device_default(&self) -> Result<Queue>[src]

pub fn buffer_cmd<'q, 'a, H: HostAccess, T: MemSafe>(
    &'q mut self,
    buffer: &'q mut dyn AsBuffer<'a, H, T>
) -> BufferCmd<'q, 'a, H, T>
[src]

Begin a new buffer command

pub fn kernel_cmd<'q, T: KernelArgList, W: WorkDims>(
    &'q mut self,
    kernel: &'q mut Kernel<T>
) -> KernelCmd<'q, T, W>
[src]

Begin a new kernel execution command

Trait Implementations

impl Debug for Queue[src]

impl Drop for Queue[src]

impl Eq for Queue[src]

impl Hash for Queue[src]

impl PartialEq<Queue> for Queue[src]

impl StructuralEq for Queue[src]

impl StructuralPartialEq 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> Same<T> for T

type Output = T

Should always be Self

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.