Function ocl_core::create_context_from_type [] [src]

pub fn create_context_from_type<D: ClDeviceIdPtr>(properties: &Option<ContextProperties>, device_type: DeviceType, pfn_notify: Option<CreateContextCallbackFn>, user_data: Option<UserDataPtr>) -> OclResult<Context>

Creates a new context pointer for all devices of a specific type.

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.