---
title: "CVOpenGLESTextureCacheFlush(_:_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvopenglestexturecacheflush(_:_:)"
---

# CVOpenGLESTextureCacheFlush(_:_:)

Performs internal housekeeping/recycling operations on a texture cache.

## Declaration

```swift
func CVOpenGLESTextureCacheFlush(_ textureCache: CVOpenGLESTextureCache, _ options: CVOptionFlags)
```

## 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

Discussion The texture cache automatically flushes currently unused resources when you call the CVOpenGLESTextureCacheCreateTextureFromImage(_:_:_:_:_:_:_:_:_:_:_:_:) function, but can you can also flush the cache explicitly by calling this function. The EAGLContext associated with the cache may be used to delete or unbind textures.

## See Also

### Functions

- [CVOpenGLESTextureCacheCreate(_:_:_:_:_:)](corevideo/cvopenglestexturecachecreate(_:_:_:_:_:).md)
- [CVOpenGLESTextureCacheCreateTextureFromImage(_:_:_:_:_:_:_:_:_:_:_:_:)](corevideo/cvopenglestexturecachecreatetexturefromimage(_:_:_:_:_:_:_:_:_:_:_:_:).md)
- [CVOpenGLESTextureCacheGetTypeID()](corevideo/cvopenglestexturecachegettypeid().md)
