Global Variable

MTKTextureLoaderOptionSRGB

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

Declaration

MTKTextureLoaderOption MTKTextureLoaderOptionSRGB;

Discussion

The value for this key is an NSNumber object containing a boolean value.

If the value is NO, the image data is treated as linear pixel data. If the value is YES, 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.