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

# rows

The number of rows in the matrix.

## Declaration

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

## See Also

### Properties

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