1 #include <kiba/renderer/vulkan/sync.h>
4 VkSemaphoreCreateInfo sp_create_info = {
5 .sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,
7 VK_CALL_B8(vkCreateSemaphore(context->device.logical,
9 &context->alloc.vulkan_callbacks,
10 &context->sync.sp_image_available));
11 VK_CALL_B8(vkCreateSemaphore(context->device.logical,
13 &context->alloc.vulkan_callbacks,
14 &context->sync.sp_render_finished));
16 VkFenceCreateInfo fc_create_info = {
17 .sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,
18 .flags = VK_FENCE_CREATE_SIGNALED_BIT,
20 VK_CALL_B8(vkCreateFence(context->device.logical,
22 &context->alloc.vulkan_callbacks,
23 &context->sync.fc_in_flight));
29 vkDestroyFence(context->device.logical, context->sync.fc_in_flight, &context->alloc.vulkan_callbacks);
30 vkDestroySemaphore(context->device.logical, context->sync.sp_render_finished, &context->alloc.vulkan_callbacks);
31 vkDestroySemaphore(context->device.logical, context->sync.sp_image_available, &context->alloc.vulkan_callbacks);