lovr.graphics.getFeatures

Returns a table indicating which features are supported by the GPU.

features = lovr.graphics.getFeatures()

Arguments

None

Returns

NameTypeDescription
featurestable
.textureBCboolean Whether TextureFormats starting with bc are supported. This will almost always be true on desktop GPUs and will almost always be false on mobile GPUs.
.textureASTCboolean Whether TextureFormats beginning with astc are supported. This will almost always be true on mobile GPUs and will almost always be false on desktop GPUs.
.wireframeboolean When supported, Pass:setWireframe will work, otherwise it will do nothing. This will always be true when using Vulkan, and will always be false when using WebGPU.
.depthClampboolean When supported, Pass:setDepthClamp will work, otherwise it will do nothing.
.indirectDrawFirstInstanceboolean Whether indirect draws can set the firstInstance property of buffer memory to something other than zero.
.float64boolean Whether shader code can use doubles.
.int64boolean Whether shader code can use signed and unsigned 64-bit integers.
.int16boolean Whether shader code can use signed and unsigned 16-bit integers.

See also