Encode support for mipmaps.