natiny_backend_get_available

C
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

C
int supported = natiny_backend_get_available(NATINY_BACKEND_VULKAN);

Notes

  • The function is safe to call before natiny_backend_init().
  • NATINY_BACKEND_AUTO is available wherever any backend is.