<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWriter/inputPixelBufferReceiverRequestingMultiPass(for:pixelBufferAttributes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So13AVAssetWriterC12AVFoundationE43inputPixelBufferReceiverRequestingMultiPass3for05pixelF10AttributesSo0aB5InputCACE0efG0C_AhCE0iJ10ControllerCtAH_9CoreVideo07CVPixelf8CreationM0VSgtF"
  },
  "title" : "inputPixelBufferReceiverRequestingMultiPass(for:pixelBufferAttributes:)"
}
-->

# inputPixelBufferReceiverRequestingMultiPass(for:pixelBufferAttributes:)

Attaches the input to the writer and returns a tuple with an input receiver for writing pixel buffers, and an associated multi pass controller.

```
func inputPixelBufferReceiverRequestingMultiPass(for input: AVAssetWriterInput, pixelBufferAttributes attributes: CVPixelBufferCreationAttributes?) -> sending (AVAssetWriterInput.PixelBufferReceiver, AVAssetWriterInput.MultiPassController)
```

## Parameters

`input`

The input to be attached to the writer.

`attributes`

The attributes of pixel buffers that will be vended by the input provider’s pixel buffer pool.

## Return Value

A tuple with an input receiver for writing pixel buffers, and an associated multi pass controller.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)