MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / GetExecutable

Function GetExecutable

vkconfig_core/executable_manager.cpp:42–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42const char* GetExecutable(ExecutableId id) {
43 switch (id) {
44 default: {
45 assert(0);
46 return nullptr;
47 }
48 case EXECUTABLE_VKCONFIG_GUI: {
49 static const char* TABLE[] = {
50 "vkconfig-gui.exe", // PLATFORM_WINDOWS_X86
51 "vkconfig-gui.exe", // PLATFORM_WINDOWS_ARM
52 "vkconfig-gui", // PLATFORM_LINUX
53 "vkconfig-gui.app", // PLATFORM_MACOS
54 "N/A", // PLATFORM_ANDROID
55 "N/A" // PLATFORM_IOS
56 };
57 static_assert(std::size(TABLE) == PLATFORM_COUNT,
58 "The tranlation table size doesn't match the enum number of elements");
59
60 return TABLE[VKC_PLATFORM];
61 }
62 case EXECUTABLE_VKCUBE: {
63 static const char* TABLE[] = {
64 "vkcube.exe", // PLATFORM_WINDOWS_X86
65 "vkcube.exe", // PLATFORM_WINDOWS_ARM
66 "vkcube", // PLATFORM_LINUX
67 "vkcube.app", // PLATFORM_MACOS
68 "N/A", // PLATFORM_ANDROID
69 "N/A" // PLATFORM_IOS
70 };
71 static_assert(std::size(TABLE) == PLATFORM_COUNT,
72 "The tranlation table size doesn't match the enum number of elements");
73
74 return TABLE[VKC_PLATFORM];
75 }
76 case EXECUTABLE_VKCUBEPP: {
77 static const char* TABLE[] = {
78 "vkcubepp.exe", // PLATFORM_WINDOWS_X86
79 "vkcubepp.exe", // PLATFORM_WINDOWS_ARM
80 "vkcubepp", // PLATFORM_LINUX
81 "vkcubepp.app", // PLATFORM_MACOS
82 "N/A", // PLATFORM_ANDROID
83 "N/A" // PLATFORM_IOS
84 };
85 static_assert(std::size(TABLE) == PLATFORM_COUNT,
86 "The tranlation table size doesn't match the enum number of elements");
87
88 return TABLE[VKC_PLATFORM];
89 }
90 case EXECUTABLE_VKINFO: {
91 static const char* TABLE[] = {
92 "vulkaninfoSDK.exe", // PLATFORM_WINDOWS_X86
93 "vulkaninfoSDK.exe", // PLATFORM_WINDOWS_ARM
94 "vulkaninfo", // PLATFORM_LINUX
95 "vulkaninfo", // PLATFORM_MACOS
96 "N/A", // PLATFORM_ANDROID
97 "N/A" // PLATFORM_IOS
98 };
99 static_assert(std::size(TABLE) == PLATFORM_COUNT,

Callers 5

mainFunction · 0.85
BuildStatusMethod · 0.85
GetVulkanInfoIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected