Move back to C

I'm insane and as such I have moved to C AGAIN! Without any reason.
This commit is contained in:
Piotr Krygier committed 2023-08-14 13:48:29 +02:00
1 parent bf31b96a2e
commit 3d538eaa2c
43 files changed
+2645 -2649

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
#ifndef RSE_VULKAN_BUFFERS_H
#define RSE_VULKAN_BUFFERS_H
#include "vulkan_commons.h"
#include "vk_mem_alloc.h"
#include <stdint.h>
/**
* @brief Create buffers needed by vulkan pipeline
*
* @param vulkan_state
* @return uint8_t
*/
uint8_t create_buffers();
/**
* @brief Update uniform buffers
*
* @param vulkan_state
*/
void update_uniform_buffers();
uint8_t update_mesh_buffers(const struct rse_vertex_t* vertices,
const uint16_t* indices,
size_t vertices_num,
size_t indices_num);
uint8_t update_mesh_instances(struct rse_instance_data_t* instance_data);
/**
* @brief Record commands for given image index
*
* @param vulkan_state
* @param imageIndex
* @return uint8_t
*/
uint8_t record_command_buffer(uint32_t imageIndex);
/**
* @brief Reset command buffer for current frame.
*
* @param vulkan_state
*/
void reset_command_buffer();
/**
* @brief Destroy ALL previously allocated buffers
*
* @param vulkan_state
*/
void destroy_buffers();
#endif /* RSE_VULKAN_BUFFERS_H */