natiny.backend.get_name

Lua
natiny.backend.get_name(backend) -> string

Returns the display name for a backend constant, such as "Direct3D 12".

Parameters

Name Type Description
backend number or string A natiny.backend.* constant, or its name

Example

Lua
print(natiny.backend.get_name(natiny.backend.D3D12))   --> "Direct3D 12"
print(natiny.backend.get_name("vulkan"))               --> "Vulkan"

-- AUTO names the one it would resolve to on this platform
print(natiny.backend.get_name(natiny.backend.AUTO))    --> "Direct3D 12"

Notes

  • Needs no initialization - it names a constant, not a running engine.
  • A backend this platform does not carry still has a name.