---
title: sourceSlice
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4copysparsetexturemappingoperation/sourceslice
---

# sourceSlice

The index of the array slice in the texture source of the copy operation.

## Declaration

```swift
var sourceSlice: Int
```

## Discussion

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