[−][src]Struct opencl_core::command_queue::CommandQueue
Methods
impl CommandQueue
[src]
pub fn create(
context: &Context,
device: &Device,
opt_props: Option<CommandQueueProperties>
) -> Output<CommandQueue>
[src]
context: &Context,
device: &Device,
opt_props: Option<CommandQueueProperties>
) -> Output<CommandQueue>
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]
&self,
device_buffer: &Buffer,
host_buffer: &[T],
opts: Option<CommandQueueOptions>
) -> Output<()>
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]
&self,
device_buffer: &Buffer,
host_buffer: &mut [T],
opts: Option<CommandQueueOptions>
) -> Output<Option<Vec<T>>>
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]
&self,
kernel: Kernel,
work: &Work,
opts: Option<CommandQueueOptions>
) -> Output<()>
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]
fn clone(&self) -> CommandQueue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CommandQueueLock<ObjectWrapper<*mut _cl_command_queue>> for CommandQueue
[src]
unsafe fn read_lock(&self) -> RwLockReadGuard<ClCommandQueue>
[src]
unsafe fn write_lock(&self) -> RwLockWriteGuard<ClCommandQueue>
[src]
unsafe fn rw_lock(&self) -> &RwLock<ClCommandQueue>
[src]
fn address(&self) -> String
[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]
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,
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,