---
title: sourceLevel
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4copysparsetexturemappingoperation/sourcelevel
---

# sourceLevel

The index of the mipmap level in the source texture.

## Declaration

```swift
var sourceLevel: Int
```

## Discussion

Discussion Provide a value between 0 and the source texture’s firstMipmapInTail. When sourceLevel is equal to the source texture’s firstMipmapInTail, set destinationLevel to the destination texture’s firstMipmapInTail.
