---
title: "output::outputIndex"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/output/outputindex
---

# output::outputIndex

Returns the index of the current output element being processed.

## Declaration

```swift
uint output::outputIndex()
```

## Return Value

Return Value The zero-based index of the current output element.

## Discussion

Discussion This function provides the zero-based index of the output element within the current output range, useful for per-element computations and indexing operations. If sorting is active, this corresponds to the post-sorting ordering. note:
