---
title: "temporaryResultStateBatch(commandBuffer:sourceImage:sourceStates:destinationImage:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpscnnconvolutiontranspose/temporaryresultstatebatch(commandbuffer:sourceimage:sourcestates:destinationimage:)"
---

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

## Declaration

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