From 62dcc1982ca4b3fdc8fa2bc950e6048dabbb7b0b Mon Sep 17 00:00:00 2001 From: Marius Pelegrin Date: Tue, 5 Mar 2024 09:47:17 +0100 Subject: [PATCH] Add requested comment Change-Id: I5e8219d49b1bee0eea6e05c98a17fce4b66ddc12 --- framework/decode/vulkan_offscreen_swapchain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/decode/vulkan_offscreen_swapchain.cpp b/framework/decode/vulkan_offscreen_swapchain.cpp index 2a9bb29204..07e1dafac5 100644 --- a/framework/decode/vulkan_offscreen_swapchain.cpp +++ b/framework/decode/vulkan_offscreen_swapchain.cpp @@ -100,6 +100,10 @@ VkResult VulkanOffscreenSwapchain::CreateSwapchainKHR(VkResult VkDevice device = device_info->handle; device_table_->GetDeviceQueue(device, default_queue_family_index_, 0, &default_queue_); + // If this option is set, a command buffer submission with a `VkFrameBoundaryEXT` must be called each time + // `vkQueuePresentKHR` should have been called by the offscreen swapchain. So a maximum of work must be done at + // swapchain creation: Allocation and recording of an empty command buffer, initialization of a `VkFrameBoundaryEXT` + // structure... (Don't forget to free everything at swapchain destruction) if (insert_frame_boundary_) { VkResult result;