IOSurfaceGetPropertyAlignment(_:)
Returns the alignment requirements for a property (if any).
Declaration
func IOSurfaceGetPropertyAlignment(_ property: CFString) -> IntDiscussion
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:
kIOSurfaceBytesPerRowkIOSurfaceOffsetkIOSurfacePlaneBasekIOSurfacePlaneOffsetkIOSurfacePlaneBytesPerRow
See Also
Functions
IOSurfaceAlignProperty(_:_:)IOSurfaceAllowsPixelSizeCasting(_:)IOSurfaceCopyAllValues(_:)IOSurfaceCopyValue(_:_:)IOSurfaceCreate(_:)IOSurfaceCreateMachPort(_:)IOSurfaceCreateXPCObject(_:)IOSurfaceDecrementUseCount(_:)IOSurfaceGetAllocSize(_:)IOSurfaceGetBaseAddress(_:)IOSurfaceGetBaseAddressOfPlane(_:_:)IOSurfaceGetBitDepthOfComponentOfPlane(_:_:_:)IOSurfaceGetBitOffsetOfComponentOfPlane(_:_:_:)IOSurfaceGetBytesPerElement(_:)IOSurfaceGetBytesPerElementOfPlane(_:_:)