Remove VulkanState dependency

Passing VulkanState everywhere (including windowLoop) made no sense.
I know that "globals are evil", but this is the best solution for now.
This commit is contained in:
Piotr Krygier committed 2023-04-04 15:27:42 +02:00
1 parent e06288320d
commit 6781c1cff1
16 files changed
+285 -272

No files matched your search

+4 -4
View File
@@ -15,28 +15,28 @@ namespace rse::graphics::vulkanbase
* @param vulkan_state
* @return uint8_t
*/
uint8_t create_pipeline(VulkanState& vulkan_state);
uint8_t create_pipeline();
/**
* @brief Cleanup swapchain
*
* @param vulkan_state
*/
void cleanup_swapchain(VulkanState& vulkan_state);
void cleanup_swapchain();
/**
* @brief Recreates swapchain
*
* @param vulkan_state
*/
void recreateSwapchain(VulkanState& vulkan_state);
void recreateSwapchain();
/**
* @brief Destroy all vulkan pipeline objects
*
* @param vulkan_state
*/
void destroy_pipeline(VulkanState& vulkan_state);
void destroy_pipeline();
}