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 natiny.backend.* constant, or its name |
Example
local supported = natiny.backend.get_available("vulkan")
Notes
- Valid names are
"auto","d3d12","vulkan","opengl","metal"and"webgpu". - The function is safe to call before init.
- A name that is not a backend at all is
false, not an error. AUTOis available wherever any backend is.