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

# GLKTextureLoaderGenerateMipmaps

Whether or not to create mipmaps for a texture.

```
let GLKTextureLoaderGenerateMipmaps: 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>, only the texture is loaded. If <doc://com.apple.documentation/documentation/Swift/true>, a full set of mipmap levels are generated for the texture when the texture is created. The `GL_TEXTURE_MIN_FILTER` parameter for the texture is changed to `GL_LINEAR_MIPMAP_LINEAR` when mipmaps are generated. If the key is not specified, 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)