natiny.backend.get_available
natiny.backend.get_available(backend) -> boolean
Returns whether init accepts the requested backend on this platform.
Parameters
| Name | Type | Description |
|---|---|---|
backend |
number or string |
A constant listed by natiny.backend.init, or its name |
Example
local supported = natiny.backend.get_available("vulkan")
Notes
natiny.backend.NONEis available on every platform.