init(unsafeBacking:matching:)
Creates a CVPixelBuffer backed by the given ioSurface. The CVPixelBuffer will retain the ioSurface. IMPORTANT If you are using IOSurface to share CVPixelBuffers between processes and those CVPixelBuffers are allocated via a CVPixelBufferPool, it is important that the CVPixelBufferPool does not reuse CVPixelBuffers whose IOSurfaces are still in use in other processes. CoreVideo and IOSurface will take care of this for if you use IOSurfaceCreateMachPort and IOSurfaceLookupFromMachPort, but NOT if you pass IOSurfaceIDs.
Declaration
init(unsafeBacking ioSurface: IOSurface, matching attributes: CVPixelBufferCreationAttributes) throws