Split vulkan_base into smaller units

Closes #30. This is a basic refactoring of the graphics module, so
everything won't be in single file.
This commit is contained in:
Piotr Krygier committed 2023-03-29 09:41:04 +02:00
1 parent 649e7f76fe
commit 6a09350902
32 files changed
+2354 -2002

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
#ifndef RSE_VULKAN_PIPELINE_HPP
#define RSE_VULKAN_PIPELINE_HPP
#include <vector>
#include <vulkan/vulkan.hpp>
#include "vulkan_commons.hpp"
namespace rse::graphics::vulkanbase
{
/**
* @brief Create a graphics pipeline
*
* @param vulkan_state
* @return uint8_t
*/
uint8_t create_pipeline(VulkanState& vulkan_state);
/**
* @brief Cleanup swapchain
*
* @param vulkan_state
*/
void cleanup_swapchain(VulkanState& vulkan_state);
/**
* @brief Recreates swapchain
*
* @param vulkan_state
*/
void recreateSwapchain(VulkanState& vulkan_state);
/**
* @brief Destroy all vulkan pipeline objects
*
* @param vulkan_state
*/
void destroy_pipeline(VulkanState& vulkan_state);
}
#endif