---
title: cvMetalTextureCache
framework: coreimage
role: symbol
role_heading: Type Property
path: coreimage/cicontextoption/cvmetaltexturecache
---

# cvMetalTextureCache

A Core Video Metal texture cache object to improve the performance of Core Image context renders that use Core Video pixel buffers.

## Declaration

```swift
static let cvMetalTextureCache: CIContextOption
```

## Discussion

Discussion Creating a Core Image context with this optional CVMetalTextureCache can improve the performance of creating a Metal texture from a CVPixelBuffer. It is recommended to specify this option if the context renders to or from pixel buffers that come from a CVPixelBufferPool. It is the client’s responsibility to flush the cache when appropriate.
