kCIContextCVMetalTextureCache

Static kCIContextCVMetalTextureCache 

Source
pub unsafe static kCIContextCVMetalTextureCache: &'static CIContextOption
Available on crate feature CIContext only.
Expand description

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

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.

See also Apple’s documentation