lovr.graphics.getFeatures
EditReturns a table indicating which features are supported by the GPU.
features = lovr.graphics.getFeatures()Arguments
None
Returns
| Name | Type | Description |
| features | table | |
| .textureBC | boolean |
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.
|
| .textureASTC | boolean |
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.
|
| .wireframe | boolean |
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.
|
| .depthClamp | boolean |
When supported, Pass:setDepthClamp will work, otherwise it will do nothing.
|
| .depthResolve | boolean | 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. |
| .raytracing | boolean |
Whether Raytracer is supported.
|
| .indirectDrawFirstInstance | boolean | Whether indirect draws can set the firstInstance property of buffer memory to something other than zero. |
| .float64 | boolean | Whether shader code can use doubles. |
| .int64 | boolean | Whether shader code can use signed and unsigned 64-bit integers. |
| .int16 | boolean | Whether shader code can use signed and unsigned 16-bit integers. |
| .cubic | boolean |
Whether the GPU supports cubic texture filtering. To check for specific format support, use lovr.graphics.isFormatSupported with the cubic TextureFeature.
|