Pass:mipmap

Edit

Generates mipmaps for a texture. This can only be called on a transfer pass, which can be created with lovr.graphics.getPass.

When rendering to textures with a render pass, it's also possible to automatically regenerate mipmaps after rendering by adding the mipmaps flag when creating the pass.

Pass:mipmap(texture, base, count)

Arguments

NameTypeDefaultDescription
textureTexture The texture to mipmap.
basenumber1 The index of the mipmap used to generate the remaining mipmaps.
countnumbernil The number of mipmaps to generate. If nil, generates the remaining mipmaps.

Returns

Nothing

See also