<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLMapIndirectArguments/init(regionOriginX:regionOriginY:regionOriginZ:regionSizeWidth:regionSizeHeight:regionSizeDepth:mipMapLevel:sliceId:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So23MTLMapIndirectArgumentsa13regionOriginX0dE1Y0dE1Z0D9SizeWidth0dF6Height0dF5Depth11mipMapLevel7sliceIdABs6UInt32V_A7Ltcfc"
  },
  "title" : "init(regionOriginX:regionOriginY:regionOriginZ:regionSizeWidth:regionSizeHeight:regionSizeDepth:mipMapLevel:sliceId:)"
}
-->

# init(regionOriginX:regionOriginY:regionOriginZ:regionSizeWidth:regionSizeHeight:regionSizeDepth:mipMapLevel:sliceId:)

Returns a new data layout for mapping sparse texture regions.

```
init(regionOriginX: UInt32, regionOriginY: UInt32, regionOriginZ: UInt32, regionSizeWidth: UInt32, regionSizeHeight: UInt32, regionSizeDepth: UInt32, mipMapLevel: UInt32, sliceId: UInt32)
```

## Parameters

`regionOriginX`

The x coordinate of the region to change, measured in tile coordinates.

`regionOriginY`

The y coordinate of the region to change, measured in tile coordinates.

`regionOriginZ`

The z coordinate of the region to change, measured in tile coordinates.

`regionSizeWidth`

The width of the region, measured in tile coordinates.

`regionSizeHeight`

The height of the region, measured in tile coordinates.

`regionSizeDepth`

The depth of the region, measured in tile coordinates.

`mipMapLevel`

The mipmap to change.

`sliceId`

The texture slice to change.

---

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)