---
title: kIOSurfaceBytesPerRow
framework: IOSurface
role: symbol
role_heading: Global Variable
platforms: [iOS 11.0+, iPadOS 11.0+, Mac Catalyst 13.1+, macOS 10.6+, tvOS 11.0+, visionOS 1.0+]
path: iosurface/kiosurfacebytesperrow
---

# kIOSurfaceBytesPerRow

The bytes per row of the buffer.

## Declaration

```swift
let kIOSurfaceBytesPerRow: CFString
```

## Discussion

Discussion If not specified, IOSurface will first calculate the number full elements required on each row (by rounding up), multiplied by the bytes per element for this buffer. That value will then be appropriately aligned. This value is stored as a CFNumber.

## See Also

### Constants

- [kIOSurfaceAllocSize](iosurface/kiosurfaceallocsize.md)
- [kIOSurfaceBytesPerElement](iosurface/kiosurfacebytesperelement.md)
- [kIOSurfaceCacheMode](iosurface/kiosurfacecachemode.md)
- [kIOSurfaceColorSpace](iosurface/kiosurfacecolorspace.md)
- [kIOSurfaceElementHeight](iosurface/kiosurfaceelementheight.md)
- [kIOSurfaceElementWidth](iosurface/kiosurfaceelementwidth.md)
- [kIOSurfaceHeight](iosurface/kiosurfaceheight.md)
- [kIOSurfaceICCProfile](iosurface/kiosurfaceiccprofile.md)
- [kIOSurfaceIsGlobal](iosurface/kiosurfaceisglobal.md)
- [kIOSurfaceName](iosurface/kiosurfacename.md)
- [kIOSurfaceOffset](iosurface/kiosurfaceoffset.md)
- [kIOSurfacePixelFormat](iosurface/kiosurfacepixelformat.md)
- [kIOSurfacePixelSizeCastingAllowed](iosurface/kiosurfacepixelsizecastingallowed.md)
- [kIOSurfacePlaneBase](iosurface/kiosurfaceplanebase.md)
- [kIOSurfacePlaneBitsPerElement](iosurface/kiosurfaceplanebitsperelement.md)
