---
title: "init(mode:textureRegion:textureLevel:textureSlice:heapOffset:)"
framework: metal
role: symbol
role_heading: Initializer
path: "metal/mtl4updatesparsetexturemappingoperation/init(mode:textureregion:texturelevel:textureslice:heapoffset:)"
---

# init(mode:textureRegion:textureLevel:textureSlice:heapOffset:)

## Declaration

```swift
init(mode: MTLSparseTextureMappingMode, textureRegion: MTLRegion, textureLevel: Int, textureSlice: Int, heapOffset: Int)
```
