| 78 | } |
| 79 | |
| 80 | VulkanBaseApp::VulkanBaseApp(const std::string &appName, bool enableValidation) |
| 81 | : m_appName(appName) |
| 82 | , m_enableValidation(enableValidation) |
| 83 | , m_instance(VK_NULL_HANDLE) |
| 84 | , m_window(nullptr) |
| 85 | , m_debugMessenger(VK_NULL_HANDLE) |
| 86 | , m_surface(VK_NULL_HANDLE) |
| 87 | , m_physicalDevice(VK_NULL_HANDLE) |
| 88 | , m_device(VK_NULL_HANDLE) |
| 89 | , m_graphicsQueue(VK_NULL_HANDLE) |
| 90 | , m_presentQueue(VK_NULL_HANDLE) |
| 91 | , m_swapChain(VK_NULL_HANDLE) |
| 92 | , m_swapChainImages() |
| 93 | , m_swapChainFormat() |
| 94 | , m_swapChainExtent() |
| 95 | , m_swapChainImageViews() |
| 96 | , m_shaderFiles() |
| 97 | , m_renderPass() |
| 98 | , m_pipelineLayout(VK_NULL_HANDLE) |
| 99 | , m_graphicsPipeline(VK_NULL_HANDLE) |
| 100 | , m_swapChainFramebuffers() |
| 101 | , m_commandPool(VK_NULL_HANDLE) |
| 102 | , m_commandBuffers() |
| 103 | , m_imageAvailableSemaphores() |
| 104 | , m_renderFinishedSemaphores() |
| 105 | , m_inFlightFences() |
| 106 | , m_uniformBuffers() |
| 107 | , m_uniformMemory() |
| 108 | , m_descriptorSetLayout(VK_NULL_HANDLE) |
| 109 | , m_descriptorPool(VK_NULL_HANDLE) |
| 110 | , m_descriptorSets() |
| 111 | , m_depthImage(VK_NULL_HANDLE) |
| 112 | , m_depthImageMemory(VK_NULL_HANDLE) |
| 113 | , m_depthImageView(VK_NULL_HANDLE) |
| 114 | , m_currentFrame(0) |
| 115 | , m_framebufferResized(false) |
| 116 | { |
| 117 | } |
| 118 | |
| 119 | VkExternalSemaphoreHandleTypeFlagBits VulkanBaseApp::getDefaultSemaphoreHandleType() |
| 120 | { |
nothing calls this directly
no outgoing calls
no test coverage detected