Global Variable

MTKTextureLoaderOptionAllocateMipmaps

A key used to specify whether the texture loader should allocate memory for mipmaps in the texture.

Declaration

MTKTextureLoaderOption MTKTextureLoaderOptionAllocateMipmaps;

Discussion

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

This option applies only if the texture being loaded does not contain mipmap data. When loading such a texture, if the value is NO, only the texture is loaded and its mipmap contents are undefined. If the value is YES, a full set of mipmap levels are allocated for the texture when the texture is loaded, and it is your responsibility to generate the mipmap contents. If this key is not specified and the image being loaded contains data for mipmaps, the mipmap memory is allocated and the image data is loaded.

See Also

Specifying Mipmap Options

MTKTextureLoaderOptionGenerateMipmaps

A key used to specify whether the texture loader should generate mipmaps for the texture.