---
title: textureTarget
framework: coreimage
role: symbol
role_heading: Type Property
path: coreimage/ciimageoption/texturetarget
---

# textureTarget

The key for an OpenGL texture target.

## Declaration

```swift
static let textureTarget: CIImageOption
```

## Discussion

Discussion The value for this key must be an NSNumber object containing a supported OpenGL texture target constant, either GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB. 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)
- [textureFormat](coreimage/ciimageoption/textureformat.md)
