get rid of another useless function

This commit is contained in:
jacekpoz 2024-10-04 16:39:40 +02:00
parent 960d1247f7
commit a55d67b9b5
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
2 changed files with 1 additions and 7 deletions

View file

@ -154,7 +154,7 @@ bool vk_record_command_buffer(const VkCommandBuffer command_buffer, const uint32
vkCmdBindIndexBuffer(command_buffer, m_index_buffer, 0, VK_INDEX_TYPE_UINT32); vkCmdBindIndexBuffer(command_buffer, m_index_buffer, 0, VK_INDEX_TYPE_UINT32);
vkCmdBindDescriptorSets(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, m_pipeline_layout, 0, 1, &m_descriptor_sets.data[vk_current_frame()], 0, NULL); vkCmdBindDescriptorSets(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, m_pipeline_layout, 0, 1, &m_descriptor_sets.data[m_current_frame], 0, NULL);
vkCmdDrawIndexed(command_buffer, g_indices.size, 1, 0, 0, 0); vkCmdDrawIndexed(command_buffer, g_indices.size, 1, 0, 0, 0);
@ -372,10 +372,6 @@ bool vk_is_done(void) {
return glfwWindowShouldClose(m_window); return glfwWindowShouldClose(m_window);
} }
uint32_t vk_current_frame(void) {
return m_current_frame;
}
bool vk_draw_frame(void) { bool vk_draw_frame(void) {
vkWaitForFences(m_dev, 1, &m_in_flight_fences.data[m_current_frame], VK_TRUE, UINT64_MAX); vkWaitForFences(m_dev, 1, &m_in_flight_fences.data[m_current_frame], VK_TRUE, UINT64_MAX);

View file

@ -16,8 +16,6 @@ bool vk_init(GLFWwindow *window, const size_t width, const size_t height, const
bool vk_is_done(void); bool vk_is_done(void);
uint32_t vk_current_frame(void);
bool vk_draw_frame(void); bool vk_draw_frame(void);
void vk_finish(void); void vk_finish(void);