CVBufferSetAttachments(_:_:_:)
Sets a dictionary of attachments on a Core Video buffer.
Declaration
func CVBufferSetAttachments(_ buffer: CVBuffer, _ theAttachments: CFDictionary, _ attachmentMode: CVAttachmentMode)Parameters
- buffer:
The buffer on which to set the attachments.
- theAttachments:
The dictionary of the attachments to set.
- attachmentMode:
The attachment mode for this attachment. See Cvattachmentmode for possible values. Any given attachment key may exist in only one mode at a time.
Discussion
This is a convenience function that calls CVBufferSetAttachment(_:_:_:_:) for each key-value pair in the given dictionary. All key-value pairs must be in the root level of the dictionary.