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

# MTLPixelFormat.rgb8Uint

An ordinary format with three components of 8-bit unsigned integer values in RGB order.

```
case rgb8Uint
```

## Discussion

The order of the color components in this format are red, green and blue.

You can apply this format to a texture you create only with an [`MTLTextureDescriptor`](/documentation/Metal/MTLTextureDescriptor) instance with all of the following property configurations:

- The [`usage`](/documentation/Metal/MTLTextureDescriptor/usage) property can’t include the [`shaderWrite`](/documentation/Metal/MTLTextureUsage/shaderWrite) option.
- The [`textureType`](/documentation/Metal/MTLTextureDescriptor/textureType) property needs to be equal to [`MTLTextureType.typeTextureBuffer`](/documentation/Metal/MTLTextureType/typeTextureBuffer).

---

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)