---
title: rowBytes
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsmatrixdescriptor/rowbytes
---

# rowBytes

The stride, in bytes, between corresponding elements of consecutive rows in the matrix.

## Declaration

```swift
var rowBytes: Int { get set }
```

## Discussion

Discussion This value must be a multiple of the element size.

## See Also

### Properties

- [rows](metalperformanceshaders/mpsmatrixdescriptor/rows.md)
- [columns](metalperformanceshaders/mpsmatrixdescriptor/columns.md)
- [dataType](metalperformanceshaders/mpsmatrixdescriptor/datatype.md)
- [MPSDataType](metalperformanceshaders/mpsdatatype.md)
- [matrices](metalperformanceshaders/mpsmatrixdescriptor/matrices.md)
- [matrixBytes](metalperformanceshaders/mpsmatrixdescriptor/matrixbytes.md)
