Contents

IOSurfaceGetPropertyAlignment(_:)

Returns the alignment requirements for a property (if any).

Declaration

func IOSurfaceGetPropertyAlignment(_ property: CFString) -> Int

Discussion

If the property has no alignment requirement then this function returns 1. The following properties should always be aligned if you choose to calculate them yourself:

  • kIOSurfaceBytesPerRow

  • kIOSurfaceOffset

  • kIOSurfacePlaneBase

  • kIOSurfacePlaneOffset

  • kIOSurfacePlaneBytesPerRow

See Also

Functions