Struct ocl::core::ContextProperties [] [src]

pub struct ContextProperties(_);

[FIXME: Minimally tested] Context properties.

TODO: Check for duplicate property assignments.

Methods

impl ContextProperties
[src]

fn new() -> ContextProperties

Returns an empty new list of context properties

fn platform<P: Into<PlatformId>>(self, platform: P) -> ContextProperties

Specifies a platform (builder-style).

fn interop_user_sync(self, sync: bool) -> ContextProperties

Specifies whether the user is responsible for synchronization between OpenCL and other APIs (builder-style).

fn and(self, prop: ContextProperty)

Pushes a ContextProperty onto this list of properties.

fn into_bytes(self) -> Vec<u8>

[UNTESTED: Not properly tested] Converts this list into a packed-byte representation as specified here.

TODO: Evaluate cleaner ways to do this.

Trait Implementations

impl Debug for ContextProperties
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Into<Vec<ContextProperty>> for ContextProperties
[src]

fn into(self) -> Vec<ContextProperty>

Performs the conversion.

impl Into<Vec<u8>> for ContextProperties
[src]

fn into(self) -> Vec<u8>

Performs the conversion.