{{newin|[[11.0]]|110|type=function}}
Generates mipmaps for the Canvas, based on the contents of the highest-resolution mipmap level.

The Canvas must be [[love.graphics.newCanvas|created]] with mipmaps set to a [[MipmapMode]] other than "none" for this function to work. It should only be called while the Canvas is not the active render target.

If the mipmap mode is set to "auto", this function is automatically called inside [[love.graphics.setCanvas]] when switching from this Canvas to another Canvas or to the main screen.
== Function ==
=== Synopsis ===
<source lang="lua">
Canvas:generateMipmaps( )
</source>
=== Arguments ===
None.
=== Returns ===
Nothing.
== See Also ==
* [[parent::Canvas]]
* [[love.graphics.newCanvas]]
* [[Canvas:getMipmapMode]]
[[Category:Functions]]
{{#set:Description=Generates mipmaps for the Canvas, based on the contents of the highest-resolution mipmap level.}}
== Other Languages ==
{{i18n|Canvas:generateMipmaps}}