<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLVertexAmplificationViewMapping",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@SA@MTLVertexAmplificationViewMapping"
  },
  "title" : "MTLVertexAmplificationViewMapping"
}
-->

# MTLVertexAmplificationViewMapping

An offset applied to a render target index and viewport index.

```
struct MTLVertexAmplificationViewMapping
```

## Topics

### Creating a view mapping

[`init()`](/documentation/Metal/MTLVertexAmplificationViewMapping/init())

Initializes a default view mapping.

[`init(viewportArrayIndexOffset:renderTargetArrayIndexOffset:)`](/documentation/Metal/MTLVertexAmplificationViewMapping/init(viewportArrayIndexOffset:renderTargetArrayIndexOffset:))

Initializes a new view mapping.

### Specifying mapping offsets

[`renderTargetArrayIndexOffset`](/documentation/Metal/MTLVertexAmplificationViewMapping/renderTargetArrayIndexOffset)

An offset into the list of render targets.

[`viewportArrayIndexOffset`](/documentation/Metal/MTLVertexAmplificationViewMapping/viewportArrayIndexOffset)

An offset into the list of viewports.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)