diff --git a/src/ptk_vk/init.c b/src/ptk_vk/init.c index 63f0db2..24bbc3d 100644 --- a/src/ptk_vk/init.c +++ b/src/ptk_vk/init.c @@ -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); - 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); @@ -372,10 +372,6 @@ bool vk_is_done(void) { return glfwWindowShouldClose(m_window); } -uint32_t vk_current_frame(void) { - return m_current_frame; -} - bool vk_draw_frame(void) { vkWaitForFences(m_dev, 1, &m_in_flight_fences.data[m_current_frame], VK_TRUE, UINT64_MAX); diff --git a/src/ptk_vk/init.h b/src/ptk_vk/init.h index f1a1fcc..89702fd 100644 --- a/src/ptk_vk/init.h +++ b/src/ptk_vk/init.h @@ -16,8 +16,6 @@ bool vk_init(GLFWwindow *window, const size_t width, const size_t height, const bool vk_is_done(void); -uint32_t vk_current_frame(void); - bool vk_draw_frame(void); void vk_finish(void);