Struct ocl_core::types::abs::Context
[−]
[src]
pub struct Context(_);
cl_context
Methods
impl Context[src]
unsafe fn from_fresh_ptr(ptr: cl_context) -> Context
Only call this when passing a newly created pointer directly from
clCreate.... Do not use this to clone or copy.
unsafe fn from_copied_ptr(ptr: cl_context) -> Context
Only call this when passing a copied pointer such as from an
clGet*****Info function.
unsafe fn as_ptr(&self) -> cl_context
Returns a pointer, do not store it.
Trait Implementations
impl Debug for Context[src]
impl Sync for Context[src]
impl Send for Context[src]
impl Clone for Context[src]
fn clone(&self) -> Context
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Drop for Context[src]
fn drop(&mut self)
Panics in the event of an error of type Error::Status except when
the status code is CL_INVALID_CONTEXT (which is ignored).
This is done because certain platforms error with CL_INVALID_CONTEXT
for unknown reasons and as far as we know can be safely ignored.
impl PartialEq<Context> for Context[src]
fn eq(&self, other: &Context) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.