<!--
{
  "availability" : [
    "iOS: 7.0.0 - 12.0.0",
    "iPadOS: 7.0.0 - 12.0.0",
    "macOS: 10.9.0 - 10.14.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKTextureLoaderSRGB",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:@GLKTextureLoaderSRGB"
  },
  "title" : "GLKTextureLoaderSRGB"
}
-->

# GLKTextureLoaderSRGB

Whether or not to treat texture image data as sRGB data.

```
let GLKTextureLoaderSRGB: String
```

## Discussion

The value for this key is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object that specifies a boolean value. If <doc://com.apple.documentation/documentation/Swift/false>, the image data is treated as linear pixel data. If <doc://com.apple.documentation/documentation/Swift/true>, the image data is treated as sRGB pixel data. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)