get rid of another useless function
This commit is contained in:
parent
960d1247f7
commit
a55d67b9b5
2 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue