Struct ocl_core::types::abs::Context [] [src]

#[repr(C)]
pub struct Context(_);

cl_context

Methods

impl Context
[src]

[src]

Only call this when passing the original newly created pointer directly from clCreate.... Do not use this to clone or copy.

[src]

Only call this when passing a copied pointer such as from an clGet*****Info function.

[src]

Returns a pointer, do not store it.

[src]

Returns the devices associated with this context.

[src]

Returns the platform associated with this context, if any.

Errors upon the usual OpenCL errors.

Returns None if the context properties do not specify a platform.

Trait Implementations

impl Debug for Context
[src]

[src]

Formats the value using the given formatter.

impl Sync for Context
[src]

impl Send for Context
[src]

impl Clone for Context
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for Context
[src]

[src]

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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<'a> ClContextPtr for &'a Context
[src]

[src]

impl ClVersions for Context
[src]

impl<'a> ClVersions for &'a Context
[src]