---
title: "MPSImageBatchSynchronize(_:_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpsimagebatchsynchronize(_:_:)"
---

# MPSImageBatchSynchronize(_:_:)

Removes any copy of the specified image batch from the device’s caches, and, if needed, invalidates any CPU caches.

## Declaration

```swift
func MPSImageBatchSynchronize(_ batch: [MPSImage], _ cmdBuf: any MTLCommandBuffer)
```
