---
title: GLKTextureLoaderGenerateMipmaps
framework: glkit
role: symbol
role_heading: Global Variable
path: glkit/glktextureloadergeneratemipmaps
---

# GLKTextureLoaderGenerateMipmaps

Whether or not to create mipmaps for a texture.

## Declaration

```swift
let GLKTextureLoaderGenerateMipmaps: String
```

## Discussion

Discussion The value for this key is an NSNumber object that specifies a boolean value. If false, only the texture is loaded. If 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 false.

## See Also

### Constants

- [GLKTextureLoaderApplyPremultiplication](glkit/glktextureloaderapplypremultiplication.md)
- [GLKTextureLoaderErrorDomain](glkit/glktextureloadererrordomain.md)
- [GLKTextureLoaderErrorKey](glkit/glktextureloadererrorkey.md)
- [GLKTextureLoaderGLErrorKey](glkit/glktextureloaderglerrorkey.md)
- [GLKTextureLoaderGrayscaleAsAlpha](glkit/glktextureloadergrayscaleasalpha.md)
- [GLKTextureLoaderOriginBottomLeft](glkit/glktextureloaderoriginbottomleft.md)
- [GLKTextureLoaderSRGB](glkit/glktextureloadersrgb.md)
- [GLK_SSE3_INTRINSICS](glkit/glk_sse3_intrinsics.md)
- [kGLKModelErrorDomain](glkit/kglkmodelerrordomain.md)
- [kGLKModelErrorKey](glkit/kglkmodelerrorkey.md)
