---
title: textureSlice
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4updatesparsetexturemappingoperation/textureslice
---

# textureSlice

The index of the array slice in the texture to update.

## Declaration

```swift
var textureSlice: Int
```

## Discussion

Discussion Provide 0 in this member if the texture type is not an array.
