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

# returnIndicesMode

Defines the mode for returned indices of maximum values within each pooling window.

## Declaration

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

## Discussion

Discussion Use this in conjunction with maxPooling4DReturnIndices(_:descriptor:name:) API. If returnIndicesMode = MPSGraphPoolingReturnIndicesNone then only the first result MPSGraph returns from maxPooling4DReturnIndices(_:descriptor:name:) will be valid and using the second result will assert. Default value: MPSGraphPoolingReturnIndicesNone.
