CVMetalTextureCache

A cache used to create and manage Metal texture objects.

Overview

A Core Video Metal texture cache creates and manages CVMetalTextureRef textures. You use a CVMetalTextureCache object to directly read from or write to GPU-based Core Video image buffers in rendering or GPU compute tasks that use the Metal framework. For example, you can use a Metal texture cache to present live output from a device’s camera in a 3D scene rendered with Metal.

Topics

Functions

CVMetalTextureCacheCreate

Creates a new texture cache.

CVMetalTextureCacheCreateTextureFromImage

Creates a Core Video Metal texture buffer from an existing image buffer.

CVMetalTextureCacheFlush

Performs internal housekeeping/recycling operations on a texture cache.

CVMetalTextureCacheGetTypeID

Returns the Core Foundation type identifier for a Core Video Metal texture cache.

Data Types

CVMetalTextureCacheRef

A reference to a Core Video Metal texture cache.

Constants

Cache Attributes

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

See Also

Metal

CVMetalTexture

A texture-based image buffer that supplies source image data for use with the Metal framework.