#include #include #include #include #include TEST(sdl_service, window_vulkan) { MM::Engine engine; engine.addService(); ASSERT_TRUE(engine.enableService()); auto* sdl_ss_ptr = engine.tryService(); ASSERT_NE(sdl_ss_ptr, nullptr); // create window ASSERT_EQ(sdl_ss_ptr->win, nullptr); ASSERT_TRUE(sdl_ss_ptr->createWindow("test vulkan window", 800, 600, SDL_WINDOW_VULKAN)); ASSERT_NE(sdl_ss_ptr->win, nullptr); engine.addService(); ASSERT_TRUE(engine.enableService()); auto& vk_rend = engine.getService(); ASSERT_TRUE(vk_rend.createDevice(engine)); ASSERT_TRUE(vk_rend.createSwapchain(engine)); //engine.run(); engine.disableService(); engine.disableService(); ASSERT_EQ(sdl_ss_ptr->win, nullptr); }