<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIContextOption",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:@T@CIContextOption"
  },
  "title" : "CIContextOption"
}
-->

# CIContextOption

An enum string type that your code can use to select different options when creating a Core Image context.

```
struct CIContextOption
```

## Overview

These option keys can be passed to `CIContext` creation APIs such as:

- `/CIContext/contextWithOptions:`
- `/CIContext/contextWithMTLDevice:options:`

## Topics

### Type Properties

[`allowLowPower`](/documentation/CoreImage/CIContextOption/allowLowPower)

A Boolean value to control the power level of Core Image context renders.

[`cacheIntermediates`](/documentation/CoreImage/CIContextOption/cacheIntermediates)

A Boolean value to control how a Core Image context caches the contents of any intermediate image buffers it uses during rendering.

[`highQualityDownsample`](/documentation/CoreImage/CIContextOption/highQualityDownsample)

A Boolean value to control the quality of image downsampling operations performed by the
Core Image context.

[`memoryTarget`](/documentation/CoreImage/CIContextOption/memoryTarget)

A number value to control the maximum memory in megabytes that the context allocates for render tasks.

[`name`](/documentation/CoreImage/CIContextOption/name)

A Boolean value to specify a client-provided name for a context.

[`outputColorSpace`](/documentation/CoreImage/CIContextOption/outputColorSpace)

A Core Image context option key to specify the default destination color space for rendering.

[`outputPremultiplied`](/documentation/CoreImage/CIContextOption/outputPremultiplied)

A Boolean value to control how a Core Image context render produces alpha-premultiplied pixels.

[`priorityRequestLow`](/documentation/CoreImage/CIContextOption/priorityRequestLow)

A Boolean value to control the priority Core Image context renders.

[`useSoftwareRenderer`](/documentation/CoreImage/CIContextOption/useSoftwareRenderer)

A Boolean value to control if a Core Image context will use a software renderer.

[`workingColorSpace`](/documentation/CoreImage/CIContextOption/workingColorSpace)

A Core Image context option key to specify the working color space for rendering.

[`workingFormat`](/documentation/CoreImage/CIContextOption/workingFormat)

A Core Image context option key to specify the pixel format to for intermediate results when rendering.

### Initializers

[`init(rawValue:)`](/documentation/CoreImage/CIContextOption/init(rawValue:))



---

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)