natiny_backend_get_available
int natiny_backend_get_available(int backend);
Returns whether natiny_backend_init accepts the requested backend on this platform.
Parameters
| Name | Type | Description |
|---|---|---|
backend |
int |
One of the NATINY_BACKEND_* constants |
Example
int supported = natiny_backend_get_available(NATINY_BACKEND_VULKAN);
Notes
- The function is safe to call before
natiny_backend_init(). NATINY_BACKEND_AUTOis available wherever any backend is.