<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLPixelFormat/gbgr422",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLPixelFormat@MTLPixelFormatGBGR422"
  },
  "title" : "MTLPixelFormat.gbgr422"
}
-->

# MTLPixelFormat.gbgr422

A pixel format where the red and green components are subsampled horizontally.

```
case gbgr422
```

## Discussion

Two pixels are stored in 32 bits, with shared red and blue values, and unique green values. The component arrangement is the same as it is in YUY2, YUYV, yuvs, and kYUVS pixel formats, except there is no implicit format conversion from a YUV to RGB color space. Only 2D non-mipmapped textures can be created with this pixel format, and the width needs to be a multiple of 2. Neither [`MTLTextureType.type2DArray`](/documentation/Metal/MTLTextureType/type2DArray) nor [`MTLTextureType.typeCube`](/documentation/Metal/MTLTextureType/typeCube) textures are supported. This format is a compressed format with a block size of 2x1 in a 32-bit block. During sampling, the address mode needs to be set to [`MTLSamplerAddressMode.clampToEdge`](/documentation/Metal/MTLSamplerAddressMode/clampToEdge).

---

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)