# 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>
    ) -> OclCoreResult<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`.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)