Cache Attributes

Attributes specifying texture cache behavior, used with the CVMetalTextureCacheCreate function.

Topics

Constants

kCVMetalTextureCacheMaximumTextureAgeKey

By default, textures age out of the cache after one second. To disable the age-out mechanism completely, set a maximum texture age of zero. You can also use the CVMetalTextureCacheFlush to manually evict the cache’s textures.