cvMetalTextureCache
A Core Video Metal texture cache object to improve the performance of Core Image context renders that use Core Video pixel buffers.
Declaration
static let cvMetalTextureCache: CIContextOptionDiscussion
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.