<!--
{
  "availability" : [
    "*: -",
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVBuffer/Attributes/init(rawAttributes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "s:So11CVBufferRefa9CoreVideoE10AttributesV03rawE0AESDySSs8Sendable_pG_tcfc"
  },
  "title" : "init(rawAttributes:)"
}
-->

# init(rawAttributes:)

Create an instance using a freeform attribute dictionary

```
init(rawAttributes: [String : any Sendable])
```

## Discussion

This dictionary should only contain the pixel buffer attributes that [`CVPixelBufferCreate(_:_:_:_:_:_:)`](/documentation/CoreVideo/CVPixelBufferCreate(_:_:_:_:_:_:)) function accepts.

---

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)