---
title: "MPSImageBatchResourceSize(_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpsimagebatchresourcesize(_:)"
---

# MPSImageBatchResourceSize(_:)

Returns the number of bytes used to allocate the specified image batch.

## Declaration

```swift
func MPSImageBatchResourceSize(_ batch: [MPSImage]) -> Int
```
