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 constant listed by natiny.backend.init, or its name

Returns

Type Description
string Display name for the backend

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

  • A backend this platform does not carry still has a name.