---
title: "setCopyOperationAt(_:sourceMatrix:destinationMatrix:offsets:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsmatrixcopydescriptor/setcopyoperationat(_:sourcematrix:destinationmatrix:offsets:)"
---

# setCopyOperationAt(_:sourceMatrix:destinationMatrix:offsets:)

## Declaration

```swift
func setCopyOperationAt(_ index: Int, sourceMatrix: MPSMatrix, destinationMatrix: MPSMatrix, offsets: MPSMatrixCopyOffsets)
```
