---
title: returnIndicesMode
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/returnindicesmode
---

# returnIndicesMode

Defines the mode for returned indices of maximum values within each pooling window. Use this in conjunction with maxPooling2DReturnIndices(_:descriptor:name:) API. If returnIndicesMode = MPSGraphPoolingReturnIndicesNone then only the first result MPSGraph returns from maxPooling2DReturnIndices(_:descriptor:name:) will be valid and using the second result will assert. Default value: MPSGraphPoolingReturnIndicesNone.

## Declaration

```swift
var returnIndicesMode: MPSGraphPoolingReturnIndicesMode { get set }
```
