---
title: "exportData(with:to:destinationDataType:offset:rowStrides:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsndarray/exportdata(with:to:destinationdatatype:offset:rowstrides:)"
---

# exportData(with:to:destinationDataType:offset:rowStrides:)

## Declaration

```swift
func exportData(with cmdBuf: any MTLCommandBuffer, to buffer: any MTLBuffer, destinationDataType: MPSDataType, offset: Int, rowStrides: UnsafeMutablePointer<Int>?)
```
