Returns the type of operations the GPU supports for a texture format, if any.
supported = lovr.graphics.isFormatSupported(format, ...features)
Arguments
Name | Type | Description |
format | TextureFormat |
The texture format to query.
|
...features | TextureFeature |
Zero or more features to check. If no features are given, this function will return whether the GPU supports any feature for this format. Otherwise, this function will only return true if all of the input features are supported.
|
Returns
Name | Type | Description |
supported | boolean |
Whether the GPU supports these operations for textures with this format.
|
See also
lovr.graphics.getDevice
lovr.graphics.getFeatures
lovr.graphics.getLimits
lovr.graphics