Struct ocl_core::types::abs::CommandQueue
source · #[repr(C)]pub struct CommandQueue(/* private fields */);
Expand description
cl_command_queue
Implementations§
source§impl CommandQueue
impl CommandQueue
sourcepub unsafe fn from_raw_create_ptr(ptr: cl_command_queue) -> CommandQueue
pub unsafe fn from_raw_create_ptr(ptr: cl_command_queue) -> CommandQueue
Only call this when passing the original newly created pointer
directly from clCreate...
. Do not use this to clone or copy.
sourcepub unsafe fn from_raw_copied_ptr(ptr: cl_command_queue) -> CommandQueue
pub unsafe fn from_raw_copied_ptr(ptr: cl_command_queue) -> CommandQueue
Only call this when passing a copied pointer such as from an
clGet*****Info
function.
sourcepub fn as_ptr(&self) -> cl_command_queue
pub fn as_ptr(&self) -> cl_command_queue
Returns a pointer, do not store it.
sourcepub fn device(&self) -> OclCoreResult<DeviceId>
pub fn device(&self) -> OclCoreResult<DeviceId>
Returns the DeviceId
associated with this command queue.
sourcepub fn context(&self) -> OclCoreResult<Context>
pub fn context(&self) -> OclCoreResult<Context>
Returns the Context
associated with this command queue.
sourcepub fn context_ptr(&self) -> OclCoreResult<cl_context>
pub fn context_ptr(&self) -> OclCoreResult<cl_context>
Returns the cl_context
associated with this command queue.
Trait Implementations§
source§impl AsRef<CommandQueue> for CommandQueue
impl AsRef<CommandQueue> for CommandQueue
source§fn as_ref(&self) -> &CommandQueue
fn as_ref(&self) -> &CommandQueue
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'a> ClContextPtr for &'a CommandQueue
impl<'a> ClContextPtr for &'a CommandQueue
fn as_ptr(&self) -> cl_context
source§impl ClVersions for CommandQueue
impl ClVersions for CommandQueue
fn device_versions(&self) -> OclCoreResult<Vec<OpenclVersion>>
fn platform_version(&self) -> OclCoreResult<OpenclVersion>
fn verify_device_versions( &self, required_version: [u16; 2] ) -> OclCoreResult<()>
fn verify_platform_version( &self, required_version: [u16; 2] ) -> OclCoreResult<()>
source§impl Clone for CommandQueue
impl Clone for CommandQueue
source§fn clone(&self) -> CommandQueue
fn clone(&self) -> CommandQueue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommandQueue
impl Debug for CommandQueue
source§impl Drop for CommandQueue
impl Drop for CommandQueue
impl Send for CommandQueue
impl Sync for CommandQueue
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more