---
title: Cache Attributes
framework: Core Video
role: collectionGroup
role_heading: API Collection
path: corevideo/cvopengltexturecache-cache-attributes
---

# Cache Attributes

Dictionary keys and values for use with the cacheAttributes parameter of CVOpenGLTextureCacheCreate(_:_:_:_:_:_:)

## Overview

Overview In some cases, a texture cache can do higher quality chroma upsampling on GPUs that support ARB_fragment_program. By default, it will be enabled automatically if the texture cache determines that the GPU has the needed support and the image size is something reasonable for the GPU being used. The default behavior can be overridden using the values defined below. note: Setting the chroma sampling mode to kCVOpenGLTextureCacheChromaSamplingModeHighQuality is only a request. GPUs that don’t support ARB_fragment_program will still resort back to the native hardware support for YCbCr textures.

## Topics

### Key

- [kCVOpenGLTextureCacheChromaSamplingModeKey](corevideo/kcvopengltexturecachechromasamplingmodekey.md)

### Values

- [kCVOpenGLTextureCacheChromaSamplingModeAutomatic](corevideo/kcvopengltexturecachechromasamplingmodeautomatic.md)
- [kCVOpenGLTextureCacheChromaSamplingModeHighestQuality](corevideo/kcvopengltexturecachechromasamplingmodehighestquality.md)
- [kCVOpenGLTextureCacheChromaSamplingModeBestPerformance](corevideo/kcvopengltexturecachechromasamplingmodebestperformance.md)
