Struct ocl_core::types::abs::CommandQueue
[−]
[src]
#[repr(C)]pub struct CommandQueue(_);
cl_command_queue
Methods
impl CommandQueue
[src]
pub unsafe fn from_raw_create_ptr(ptr: cl_command_queue) -> CommandQueue
[src]
Only call this when passing the original newly created pointer
directly from clCreate...
. Do not use this to clone or copy.
pub unsafe fn from_raw_copied_ptr(ptr: cl_command_queue) -> CommandQueue
[src]
Only call this when passing a copied pointer such as from an
clGet*****Info
function.
pub fn as_ptr(&self) -> cl_command_queue
[src]
Returns a pointer, do not store it.
pub fn device(&self) -> OclCoreResult<DeviceId>
[src]
Returns the DeviceId
associated with this command queue.
pub fn context(&self) -> OclCoreResult<Context>
[src]
Returns the Context
associated with this command queue.
pub fn context_ptr(&self) -> OclCoreResult<cl_context>
[src]
Returns the cl_context
associated with this command queue.
Trait Implementations
impl Debug for CommandQueue
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for CommandQueue
[src]
fn clone(&self) -> CommandQueue
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Drop for CommandQueue
[src]
impl AsRef<CommandQueue> for CommandQueue
[src]
fn as_ref(&self) -> &CommandQueue
[src]
Performs the conversion.
impl<'a> ClContextPtr for &'a CommandQueue
[src]
fn as_ptr(&self) -> cl_context
[src]
impl Sync for CommandQueue
[src]
impl Send for CommandQueue
[src]
impl ClVersions for CommandQueue
[src]
fn device_versions(&self) -> OclCoreResult<Vec<OpenclVersion>>
[src]
fn platform_version(&self) -> OclCoreResult<OpenclVersion>
[src]
fn verify_device_versions(
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>
[src]
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>
fn verify_platform_version(
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>
[src]
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>