---
title: "temporaryResultStateBatch(commandBuffer:sourceImages:sourceStates:destinationImage:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpscnnmultiarykernel/temporaryresultstatebatch(commandbuffer:sourceimages:sourcestates:destinationimage:)"
---

# temporaryResultStateBatch(commandBuffer:sourceImages:sourceStates:destinationImage:)

## Declaration

```swift
func temporaryResultStateBatch(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [[MPSImage]], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSState]?
```
