<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage/BufferType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO10BufferTypeO"
  },
  "title" : "vImage.BufferType"
}
-->

# vImage.BufferType

Codes that represent vImage buffer types.

```
enum BufferType
```

## Topics

### Initializers

[`init?(bufferTypeCode: Int, model: CGColorSpaceModel?)`](/documentation/Accelerate/vImage/BufferType/init(bufferTypeCode:model:))

Creates a buffer type enumeration from the specified code and color space model.

### Enumeration Cases

[`case Cb`](/documentation/Accelerate/vImage/BufferType/Cb)

The buffer contains the blue chrominance channel.

[`case Cr`](/documentation/Accelerate/vImage/BufferType/Cr)

The buffer contains the red chrominance channel.

[`case YCbCr`](/documentation/Accelerate/vImage/BufferType/YCbCr)

The buffer contains interleaved luminance and both chroma channels.

[`case alpha`](/documentation/Accelerate/vImage/BufferType/alpha)

The buffer contains the alpha channel or coverage component.

[`case chroma`](/documentation/Accelerate/vImage/BufferType/chroma)

The buffer contains the interleaved chrominance channels.

[`case chunky`](/documentation/Accelerate/vImage/BufferType/chunky)

The buffer contains chunky data.

[`case cmykBlack`](/documentation/Accelerate/vImage/BufferType/cmykBlack)

The buffer contains the black channel.

[`case cmykCyan`](/documentation/Accelerate/vImage/BufferType/cmykCyan)

The buffer contains the cyan channel.

[`case cmykMagenta`](/documentation/Accelerate/vImage/BufferType/cmykMagenta)

The buffer contains the magenta channel.

[`case cmykYellow`](/documentation/Accelerate/vImage/BufferType/cmykYellow)

The buffer contains the yellow channel.

[`case coreGraphics`](/documentation/Accelerate/vImage/BufferType/coreGraphics)

The buffer contains a Core Graphics image.

[`case indexed`](/documentation/Accelerate/vImage/BufferType/indexed)

The buffer contains data in an indexed colorspace.

[`case labA`](/documentation/Accelerate/vImage/BufferType/labA)

The buffer contains the `a*` channel.

[`case labB`](/documentation/Accelerate/vImage/BufferType/labB)

The buffer contains the `b*` channel.

[`case labL`](/documentation/Accelerate/vImage/BufferType/labL)

The buffer contains the `L*` channel.

[`case luminance`](/documentation/Accelerate/vImage/BufferType/luminance)

The buffer contains only luminance data.

[`case monochrome`](/documentation/Accelerate/vImage/BufferType/monochrome)

The buffer contains monochrome data.

[`case rgbBlue`](/documentation/Accelerate/vImage/BufferType/rgbBlue)

The buffer contains the blue channel.

[`case rgbGreen`](/documentation/Accelerate/vImage/BufferType/rgbGreen)

The buffer contains the green channel.

[`case rgbRed`](/documentation/Accelerate/vImage/BufferType/rgbRed)

The buffer contains the red channel.

[`case xyzX`](/documentation/Accelerate/vImage/BufferType/xyzX)

The buffer contains the `X` channel.

[`case xyzY`](/documentation/Accelerate/vImage/BufferType/xyzY)

The buffer contains the `Y` channel.

[`case xyzZ`](/documentation/Accelerate/vImage/BufferType/xyzZ)

The buffer contains the `Z` channel.

### Buffer Type Properties

[`var bufferTypeCode: vImageBufferTypeCode`](/documentation/Accelerate/vImage/BufferType/bufferTypeCode)

The type code of the buffer type.

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Copyable`](/documentation/Swift/Copyable)

---

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)