---
title: SRGB
framework: metalkit
role: symbol
role_heading: Type Property
path: metalkit/mtktextureloader/option/srgb
---

# SRGB

A key used to specify whether the texture data is stored as sRGB image data.

## Declaration

```swift
static let SRGB: MTKTextureLoader.Option
```

## Discussion

Discussion The value for this key is an NSNumber object containing a boolean value. If the value is false, the image data is treated as linear pixel data. If the value is true, the image data is treated as sRGB pixel data. If this key is not specified and the image being loaded has been gamma-corrected, the image data uses the specified sRGB information.
