natiny.backend.get_available

Lua
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

Lua
local supported = natiny.backend.get_available("vulkan")

Notes

  • natiny.backend.NONE is available on every platform.