---
title: "MPSStateBatchSynchronize(_:_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpsstatebatchsynchronize(_:_:)"
---

# MPSStateBatchSynchronize(_:_:)

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

## Declaration

```swift
func MPSStateBatchSynchronize(_ batch: [MPSState], _ cmdBuf: any MTLCommandBuffer)
```
