<!--
{
  "documentType" : "article",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIContext/CIContext-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "CIContext Implementations"
}
-->

# CIContext Implementations

## Topics

### Initializers

[`init?(forOfflineGPUAtIndex: UInt32)`](/documentation/CoreImage/CIContext/init(forOfflineGPUAtIndex:))

Creates an OpenGL-based Core Image context using a GPU that is not currently driving a display.

[`init?(forOfflineGPUAtIndex: UInt32, colorSpace: CGColorSpace?, options: [CIContextOption : Any]?, sharedContext: CGLContextObj?)`](/documentation/CoreImage/CIContext/init(forOfflineGPUAtIndex:colorSpace:options:sharedContext:))

Creates an OpenGL-based Core Image context using a GPU that is not currently driving a display, with the specified options.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)