---
title: "MPSStateBatchIncrementReadCount(_:_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpsstatebatchincrementreadcount(_:_:)"
---

# MPSStateBatchIncrementReadCount(_:_:)

Increments or decrements the read count of a state batch by a specified amount.

## Declaration

```swift
func MPSStateBatchIncrementReadCount(_ batch: [MPSState]?, _ amount: Int) -> Int
```
