lovr.graphics.getLimits

Returns information about the maximum limits of the graphics card, such as the maximum texture size or the amount of supported antialiasing.

limits = lovr.graphics.getLimits()

Arguments

None

Returns

NameTypeDescription
limitstableThe table of limits.
.anisotropynumberThe maximum anisotropy value supported by Texture:setFilter.
.blocksizenumberThe maximum size of a uniform ShaderBlock, in bytes.
.pointsizenumberThe maximum size of points, in pixels.
.texturemsaanumberThe maximum MSAA value supported by lovr.graphics.newTexture.
.texturesizenumberThe maximum width or height of textures, in pixels.
.computetableA table of three numbers indicating the maximum number of compute threads that can be run with lovr.graphics.compute.

See also