<!--
{
  "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/CVPixelBufferAttributes/pixelFormatTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "s:9CoreVideo23CVPixelBufferAttributesV16pixelFormatTypesSayAA0cG4TypeVGSgvp"
  },
  "title" : "pixelFormatTypes"
}
-->

# pixelFormatTypes

Allow multiple pixel formats to be specified in attributes

```
var pixelFormatTypes: [CVPixelFormatType]? { get set }
```

## Discussion

Setting this property will override the single format value set by [`pixelFormatType`](/documentation/CoreVideo/CVPixelBufferCreationAttributes/pixelFormatType) and
vice-versa. When accessing [`pixelFormatType`](/documentation/CoreVideo/CVPixelBufferCreationAttributes/pixelFormatType), only the first value is used if multiple
format values are set. Do not set this value to an empty array.

---

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)