Skip to content

Commit

Permalink
Make the Vulkan swap chain work
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Feb 4, 2025
1 parent b08c608 commit bd91041
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 122 deletions.
4 changes: 3 additions & 1 deletion Backends/Graphics5/Vulkan/Sources/kope/vulkan/commandlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ void kope_vulkan_command_list_end_render_pass(kope_g5_command_list *list) {
vkCmdEndRendering(list->vulkan.command_buffer);
}

void kope_vulkan_command_list_present(kope_g5_command_list *list) {}
void kope_vulkan_command_list_present(kope_g5_command_list *list) {
list->vulkan.presenting = true;
}

void kope_vulkan_command_list_set_index_buffer(kope_g5_command_list *list, kope_g5_buffer *buffer, kope_g5_index_format index_format, uint64_t offset,
uint64_t size) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ typedef struct kope_vulkan_command_list {
VkDevice device;
VkCommandPool command_pool;
VkCommandBuffer command_buffer;
bool presenting;
} kope_vulkan_command_list;

#ifdef __cplusplus
Expand Down
Loading

0 comments on commit bd91041

Please sign in to comment.