<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIContextOption/workingFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:@kCIContextWorkingFormat"
  },
  "title" : "workingFormat"
}
-->

# workingFormat

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

```
static let workingFormat: CIContextOption
```

## Discussion

The value for this key is an `NSNumber` instance containing a [`CIFormat`](/documentation/CoreImage/CIFormat) value.

The supported values for the working pixel format are:

|``doc://com.apple.coreimage/documentation/CoreImage/CIFormat``      |Notes                                                             |
|--------------------------------------------------------------------|------------------------------------------------------------------|
|``doc://com.apple.coreimage/documentation/CoreImage/CIFormat/RGBA8``|Uses 4 bytes per pixel. Only supporrts SDR and has less precision.|
|``doc://com.apple.coreimage/documentation/CoreImage/CIFormat/RGBAh``|Uses 8 bytes per pixel. Supports HDR.                             |
|``doc://com.apple.coreimage/documentation/CoreImage/CIFormat/RGBAf``|Uses 16 bytes per pixel. Only available on macOS                  |

If this option is not specified, then the default is [`RGBAh`](/documentation/CoreImage/CIFormat/RGBAh).

(The default is [`RGBA8`](/documentation/CoreImage/CIFormat/RGBA8) if your if app is linked against iOS 12 SDK or earlier.)

---

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)