Function

CVMetalTextureCacheFlush

Performs internal housekeeping/recycling operations on a texture cache.

Declaration

void CVMetalTextureCacheFlush(CVMetalTextureCacheRef textureCache, CVOptionFlags options);

Parameters

textureCache

The texture cache object to flush.

options

Options for the flush operation. This parameter is currently unused and should be set to 0.

Discussion

The texture cache automatically flushes currently unused resources when you call the CVMetalTextureCacheCreateTextureFromImage function, but can you can also flush the cache explicitly by calling this function.