---
title: textureFormat
framework: coreimage
role: symbol
role_heading: Type Property
path: coreimage/ciimageoption/textureformat
---

# textureFormat

The key for an OpenGL texture format.

## Declaration

```swift
static let textureFormat: CIImageOption
```

## Discussion

Discussion The value for this key must be an 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:) method.

## See Also

### Deprecated

- [init(cgLayer:)](coreimage/ciimage/init(cglayer:)-2lgo6.md)
- [init(cgLayer:options:)](coreimage/ciimage/init(cglayer:options:)-3p3l3.md)
- [init(texture:size:flipped:colorSpace:)](coreimage/ciimage/init(texture:size:flipped:colorspace:).md)
- [init(texture:size:flipped:options:)](coreimage/ciimage/init(texture:size:flipped:options:).md)
- [init(ioSurface:plane:format:options:)](coreimage/ciimage/init(iosurface:plane:format:options:)-93isn.md)
- [textureTarget](coreimage/ciimageoption/texturetarget.md)
