---
title: destinationOrigin
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4copysparsetexturemappingoperation/destinationorigin
---

# destinationOrigin

The origin in the destination texture to copy into, in tiles.

## Declaration

```swift
var destinationOrigin: MTLOrigin
```

## Discussion

Discussion The X, Y and Z coordinates of the tiles relative to the origin match the same coordinates in the source region. When destinationLevel is equal to the destination texture’s firstMipmapInTail, set destinationOrigin.y to 0.
