MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / Main2

Function Main2

src/VulkanSample.cpp:2759–2789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2757}
2758
2759int Main2(int argc, wchar_t** argv)
2760{
2761 PrintLogo();
2762
2763 if(!g_CommandLineParameters.Parse(argc, argv))
2764 {
2765 wprintf(L"ERROR: Invalid command line syntax.\n");
2766 PrintHelp();
2767 return (int)ExitCode::CommandLineError;
2768 }
2769
2770 if(g_CommandLineParameters.m_Help)
2771 {
2772 PrintHelp();
2773 return (int)ExitCode::Help;
2774 }
2775
2776 VulkanUsage vulkanUsage;
2777 vulkanUsage.Init();
2778
2779 if(g_CommandLineParameters.m_List)
2780 {
2781 vulkanUsage.PrintPhysicalDeviceList();
2782 return (int)ExitCode::GPUList;
2783 }
2784
2785 g_hPhysicalDevice = vulkanUsage.SelectPhysicalDevice(g_CommandLineParameters.m_GPUSelection);
2786 TEST(g_hPhysicalDevice);
2787
2788 return MainWindow();
2789}
2790
2791int wmain(int argc, wchar_t** argv)
2792{

Callers 1

wmainFunction · 0.85

Calls 8

PrintLogoFunction · 0.85
PrintHelpFunction · 0.85
TESTEnum · 0.85
MainWindowFunction · 0.85
ParseMethod · 0.80
SelectPhysicalDeviceMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected