---
title: "importData(with:from:sourceDataType:offset:rowStrides:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsndarray/importdata(with:from:sourcedatatype:offset:rowstrides:)"
---

# importData(with:from:sourceDataType:offset:rowStrides:)

## Declaration

```swift
func importData(with cmdBuf: any MTLCommandBuffer, from buffer: any MTLBuffer, sourceDataType: MPSDataType, offset: Int, rowStrides: UnsafeMutablePointer<Int>?)
```
