Struct ocl_core::types::structs::ContextProperties
[−]
[src]
pub struct ContextProperties(_);
Context properties list.
[MINIMALLY TESTED]
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 gl_context(self, gl_ctx: cl_GLuint) -> ContextProperties
Specifies an OpenGL context handle (builder-style).
fn cgl_sharegroup(self, gl_sharegroup: *mut c_void) -> ContextProperties
Specifies an OpenGL context CGL share group to associate the OpenCL context with (builder-style).
fn property_value(self, prop: ContextPropertyValue) -> ContextProperties
Pushes a ContextPropertyValue
onto this list of properties
(builder-style).
fn set_platform<P: Into<PlatformId>>(&mut self, platform: P)
Specifies a platform.
fn set_interop_user_sync(&mut self, sync: bool)
Specifies whether the user is responsible for synchronization between OpenCL and other APIs.
fn set_gl_context(&mut self, gl_ctx: cl_GLuint)
Specifies an OpenGL context handle.
fn set_cgl_sharegroup(&mut self, gl_sharegroup: *mut c_void)
Specifies an OpenGL context CGL share group to associate the OpenCL context with.
fn set_property_value(&mut self, prop: ContextPropertyValue)
Pushes a ContextPropertyValue
onto this list of properties.
fn get_platform(&self) -> Option<PlatformId>
Returns a platform id or none.
fn get_cgl_sharegroup(&self) -> Option<*mut c_void>
Returns a cgl_sharegroup id or none.
fn to_raw(&self) -> Vec<isize>
Converts this list into a packed-word representation as specified here.
Trait Implementations
impl Debug for ContextProperties
[src]
impl Clone for ContextProperties
[src]
fn clone(&self) -> ContextProperties
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