---
title: "encodeBatch(to:sourceImages:batchNormalizationState:destinationImages:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpscnnbatchnormalization/encodebatch(to:sourceimages:batchnormalizationstate:destinationimages:)"
---

# encodeBatch(to:sourceImages:batchNormalizationState:destinationImages:)

## Declaration

```swift
func encodeBatch(to commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], batchNormalizationState: MPSCNNBatchNormalizationState, destinationImages: [MPSImage])
```
