[][src]Struct opencl_core::command_queue::CommandQueue

pub struct CommandQueue { /* fields omitted */ }

Methods

impl CommandQueue[src]

pub fn create(
    context: &Context,
    device: &Device,
    opt_props: Option<CommandQueueProperties>
) -> Output<CommandQueue>
[src]

Creates a new CommandQueue with the given Context on the given Device.

pub fn create_copy(&self) -> Output<CommandQueue>[src]

Creates a new copy of a CommandQueue with CommandQueue's Context on the CommandQueue's Device.

This function is useful for executing concurrent operations on a device within the same Context.

pub fn low_level_context(&self) -> ClContext[src]

The low-level context of the CommandQueue

pub fn low_level_device(&self) -> ClDeviceID[src]

pub fn write_buffer<T: ClNumber>(
    &self,
    device_buffer: &Buffer,
    host_buffer: &[T],
    opts: Option<CommandQueueOptions>
) -> Output<()>
[src]

write_buffer is used to move data from the host buffer (buffer: &[T]) to the OpenCL cl_mem pointer inside d_mem: &Buffer<T>.

pub fn read_buffer<T: ClNumber>(
    &self,
    device_buffer: &Buffer,
    host_buffer: &mut [T],
    opts: Option<CommandQueueOptions>
) -> Output<Option<Vec<T>>>
[src]

read_buffer is used to move data from the device_mem (cl_mem pointer inside &DeviceMem<T>) into a host_buffer (&mut [T]).

pub fn enqueue_kernel(
    &self,
    kernel: Kernel,
    work: &Work,
    opts: Option<CommandQueueOptions>
) -> Output<()>
[src]

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

pub fn reference_count(&self) -> Output<u32>[src]

pub fn properties(&self) -> Output<CommandQueueProperties>[src]

Trait Implementations

impl Clone for CommandQueue[src]

impl CommandQueueLock<ObjectWrapper<*mut _cl_command_queue>> for CommandQueue[src]

impl Debug for CommandQueue[src]

impl Drop for CommandQueue[src]

impl Eq for CommandQueue[src]

impl PartialEq<CommandQueue> for CommandQueue[src]

impl Send for CommandQueue[src]

impl Sync for CommandQueue[src]

Auto Trait Implementations

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, 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.