---
title: "resultStateBatch(sourceImage:sourceStates:destinationImage:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpscnnconvolution/resultstatebatch(sourceimage:sourcestates:destinationimage:)"
---

# resultStateBatch(sourceImage:sourceStates:destinationImage:)

## Declaration

```swift
func resultStateBatch(sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSCNNConvolutionGradientState]?
```
