lovr.graphics.getFeatures

Edit

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.
.depthResolveboolean When supported, multisampled render passes can use a non-multisampled depth texture. Otherwise, the depth texture sample count needs to match the render pass sample count.
.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