Function ocl_core::create_context
[−]
[src]
pub fn create_context<D: ClDeviceIdPtr>(
properties: Option<&ContextProperties>,
device_ids: &[D],
pfn_notify: Option<CreateContextCallbackFn>,
user_data: Option<UserDataPtr>
) -> OclResult<Context>
Creates a new context pointer valid for all devices in device_ids
.
Platform is specified in properties
. If properties
is None
, the platform may
default to the first available.
[FIXME]: Incomplete implementation. Callback and userdata untested.
[FIXME]: Verify OpenCL Version on property.
[FIXME]: Most context sources not implemented for ContextProperties
.