---
title: "MPSImageBatchIncrementReadCount(_:_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpsimagebatchincrementreadcount(_:_:)"
---

# MPSImageBatchIncrementReadCount(_:_:)

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

## Declaration

```swift
func MPSImageBatchIncrementReadCount(_ batch: [MPSImage], _ amount: Int) -> Int
```
