| 2757 | } |
| 2758 | |
| 2759 | VulkanContextCreator::VulkanContextCreator(VulkanInstance& vk, VulkanRenderDevice& dev, void* window, int screenWidth, int screenHeight, |
| 2760 | const VulkanContextFeatures& ctxFeatures): |
| 2761 | instance(vk), |
| 2762 | vkDev(dev) |
| 2763 | { |
| 2764 | createInstance(&vk.instance); |
| 2765 | |
| 2766 | if (!setupDebugCallbacks(vk.instance, &vk.messenger, &vk.reportCallback)) |
| 2767 | exit(0); |
| 2768 | |
| 2769 | if (glfwCreateWindowSurface(vk.instance, (GLFWwindow *)window, nullptr, &vk.surface)) |
| 2770 | exit(0); |
| 2771 | |
| 2772 | if (!initVulkanRenderDevice3(vk, dev, screenWidth, screenHeight, ctxFeatures)) |
| 2773 | exit(0); |
| 2774 | } |
| 2775 | |
| 2776 | VulkanContextCreator::~VulkanContextCreator() |
| 2777 | { |
nothing calls this directly
no test coverage detected