GLM works only for C++ and I plan on moving to back to C. There is a C port, but it would be good for me to figure out vertex math myself. Hence, my own library has been created.
44 lines
595 B
C++
44 lines
595 B
C++
#ifndef RSE_VULKAN_PIPELINE_HPP
|
|
#define RSE_VULKAN_PIPELINE_HPP
|
|
|
|
#include <vector>
|
|
#include <vulkan/vulkan.hpp>
|
|
|
|
#include "vulkan_commons.h"
|
|
|
|
namespace rse::graphics::vulkanbase
|
|
{
|
|
|
|
/**
|
|
* @brief Create a graphics pipeline
|
|
*
|
|
* @param vulkan_state
|
|
* @return uint8_t
|
|
*/
|
|
uint8_t create_pipeline();
|
|
|
|
/**
|
|
* @brief Cleanup swapchain
|
|
*
|
|
* @param vulkan_state
|
|
*/
|
|
void cleanup_swapchain();
|
|
|
|
/**
|
|
* @brief Recreates swapchain
|
|
*
|
|
* @param vulkan_state
|
|
*/
|
|
void recreateSwapchain();
|
|
|
|
/**
|
|
* @brief Destroy all vulkan pipeline objects
|
|
*
|
|
* @param vulkan_state
|
|
*/
|
|
void destroy_pipeline();
|
|
|
|
}
|
|
|
|
#endif
|