| 2757 | } |
| 2758 | |
| 2759 | int 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 | |
| 2791 | int wmain(int argc, wchar_t** argv) |
| 2792 | { |
no test coverage detected