Add Vulkan string to system information

This commit is contained in:
twinaphex 2016-02-17 02:01:51 +01:00
parent d78787d70e
commit 263efc965b
3 changed files with 9 additions and 0 deletions

View File

@ -1474,6 +1474,8 @@ const char *menu_hash_to_str_us(uint32_t hash)
return "SDL1.2 support";
case MENU_LABEL_VALUE_SYSTEM_INFO_SDL2_SUPPORT:
return "SDL2 support";
case MENU_LABEL_VALUE_SYSTEM_INFO_VULKAN_SUPPORT:
return "Vulkan support";
case MENU_LABEL_VALUE_SYSTEM_INFO_OPENGL_SUPPORT:
return "OpenGL support";
case MENU_LABEL_VALUE_SYSTEM_INFO_OPENGLES_SUPPORT:

View File

@ -705,6 +705,12 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
menu_entries_push(info->list, feat_str, "",
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
snprintf(feat_str, sizeof(feat_str),
"%s: %s",
menu_hash_to_str(MENU_LABEL_VALUE_SYSTEM_INFO_VULKAN_SUPPORT),
_vulkan_supp ? menu_hash_to_str(MENU_LABEL_VALUE_YES) : menu_hash_to_str(MENU_LABEL_VALUE_NO));
menu_entries_push(info->list, feat_str, "",
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
snprintf(feat_str, sizeof(feat_str),
"%s: %s",

View File

@ -1025,6 +1025,7 @@ extern "C" {
#define MENU_LABEL_VALUE_SYSTEM_INFO_RPNG_SUPPORT 0xe1dcea36U
#define MENU_LABEL_VALUE_SYSTEM_INFO_SDL_SUPPORT 0xf9bc2a42U
#define MENU_LABEL_VALUE_SYSTEM_INFO_SDL2_SUPPORT 0x3c2d6134U
#define MENU_LABEL_VALUE_SYSTEM_INFO_VULKAN_SUPPORT 0x6a06e373U
#define MENU_LABEL_VALUE_SYSTEM_INFO_OPENGL_SUPPORT 0xa4d164a4U
#define MENU_LABEL_VALUE_SYSTEM_INFO_OPENGLES_SUPPORT 0xe2e627dcU
#define MENU_LABEL_VALUE_SYSTEM_INFO_THREADING_SUPPORT 0x282bf995U