<!--
{
  "availability" : [
    "macOS: 10.9.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImageOption/textureFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:@kCIImageTextureFormat"
  },
  "title" : "textureFormat"
}
-->

# textureFormat

The key for an OpenGL texture format.

```
static let textureFormat: CIImageOption
```

## Discussion

The value for this key must be an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing a Core Image pixel format constant. (See `Pixel Formats`.) You may only use this key when initializing an image using the [`init(texture:size:flipped:options:)`](/documentation/CoreImage/CIImage/init(texture:size:flipped:options:)) method.

---

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)