[−][src]Struct open_cl_low_level::command_queue::ClCommandQueue
Methods
impl ClCommandQueue
[src]
pub unsafe fn new(cq: cl_command_queue) -> Output<ClCommandQueue>
[src]
Builds a ClCommandQueue after checking for null-pointer.
pub unsafe fn unchecked_new(object: cl_command_queue) -> ClCommandQueue
[src]
Builds a ClCommandQueue without checking for null-pointer.
pub unsafe fn retain_new(cq: cl_command_queue) -> Output<ClCommandQueue>
[src]
After checking for null-pointer and retaining the cl_command_queue builds a ClCommandQueue.
Safety
Calling this function with a cl_command_queue in an invalid state is undefined behavior.
pub unsafe fn create(
context: &ClContext,
device: &ClDeviceID,
opt_props: Option<CommandQueueProperties>
) -> Output<ClCommandQueue>
[src]
context: &ClContext,
device: &ClDeviceID,
opt_props: Option<CommandQueueProperties>
) -> Output<ClCommandQueue>
Create a new ClCommandQueue in the given ClContext on the given ClDeviceID with the given CommandQueueProperties (optional).
Safety
Calling this function with an invalid ClContext or ClDeviceID is undefined behavior.
pub unsafe fn create_from_raw_pointers(
context: cl_context,
device: cl_device_id,
props: cl_command_queue_properties
) -> Output<ClCommandQueue>
[src]
context: cl_context,
device: cl_device_id,
props: cl_command_queue_properties
) -> Output<ClCommandQueue>
Creates a ClCommandQueue from raw ClObject pointers.
Safety
Passing an invalid ClObject is undefined behavior.
pub unsafe fn create_copy(&self) -> Output<ClCommandQueue>
[src]
Creates a copy of a ClCommandQueue. The copy is, in fact, a completely differnt ClCommandQueue that has the same cl_context and cl_device_id as the original.
Safety
Calling this function on an invalid ClCommandQueue is undefined behavior.
pub unsafe fn write_buffer<'a, T: ClNumber, H: Into<VecOrSlice<'a, T>>>(
&mut self,
mem: &mut ClMem<T>,
host_buffer: H,
opts: Option<CommandQueueOptions>
) -> Output<ClEvent>
[src]
&mut self,
mem: &mut ClMem<T>,
host_buffer: H,
opts: Option<CommandQueueOptions>
) -> Output<ClEvent>
write_buffer is used to move data from the host buffer (buffer: &[T]) to the mutable OpenCL cl_mem pointer.
pub unsafe fn read_buffer<'a, T: ClNumber, H: Into<MutVecOrSlice<'a, T>>>(
&mut self,
mem: &ClMem<T>,
host_buffer: H,
opts: Option<CommandQueueOptions>
) -> Output<BufferReadEvent<T>>
[src]
&mut self,
mem: &ClMem<T>,
host_buffer: H,
opts: Option<CommandQueueOptions>
) -> Output<BufferReadEvent<T>>
Copies data from a ClMem
pub unsafe fn enqueue_kernel(
&mut self,
kernel: &mut ClKernel,
work: &Work,
opts: Option<CommandQueueOptions>
) -> Output<ClEvent>
[src]
&mut self,
kernel: &mut ClKernel,
work: &Work,
opts: Option<CommandQueueOptions>
) -> Output<ClEvent>
Enqueues a ClKernel onto a the ClCommandQueue.
Safety
Usage of invalid ClObjects is undefined behavior.
pub unsafe fn finish(&mut self) -> Output<()>
[src]
Trait Implementations
impl CommandQueuePtr for ClCommandQueue
[src]
unsafe fn command_queue_ptr(&self) -> cl_command_queue
[src]
fn address(&self) -> String
[src]
unsafe fn info<T: Copy>(&self, flag: CQInfo) -> Output<ClPointer<T>>
[src]
unsafe fn cl_context(&self) -> Output<cl_context>
[src]
unsafe fn context(&self) -> Output<ClContext>
[src]
unsafe fn cl_device_id(&self) -> Output<cl_device_id>
[src]
unsafe fn device(&self) -> Output<ClDeviceID>
[src]
unsafe fn reference_count(&self) -> Output<u32>
[src]
unsafe fn cl_command_queue_properties(
&self
) -> Output<cl_command_queue_properties>
[src]
&self
) -> Output<cl_command_queue_properties>
unsafe fn properties(&self) -> Output<CommandQueueProperties>
[src]
impl Debug for ClCommandQueue
[src]
Clone is highly unsafe without ensuring Sync and Send
impl Drop for ClCommandQueue
[src]
fn drop(&mut self)
[src]
Drops the ClCommandQueue by releasing and thereby decrementing the reference count of the cl_command_queue.
impl Eq for ClCommandQueue
[src]
impl PartialEq<ClCommandQueue> for ClCommandQueue
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClCommandQueue
impl !Send for ClCommandQueue
impl !Sync for ClCommandQueue
impl Unpin for ClCommandQueue
impl UnwindSafe for ClCommandQueue
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, 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>,