1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Rework semaphores for presentation to be created per swap chain image to fix validation error.

This commit is contained in:
Dario
2025-05-14 15:20:33 -03:00
parent 428a762e98
commit ad22f65489
2 changed files with 27 additions and 31 deletions

View File

@@ -302,7 +302,6 @@ public:
// ----- QUEUE -----
private:
struct CommandQueue {
LocalVector<VkSemaphore> present_semaphores;
LocalVector<VkSemaphore> image_semaphores;
LocalVector<SwapChain *> image_semaphores_swap_chains;
LocalVector<uint32_t> pending_semaphores_for_execute;
@@ -311,7 +310,6 @@ private:
LocalVector<Pair<Fence *, uint32_t>> image_semaphores_for_fences;
uint32_t queue_family = 0;
uint32_t queue_index = 0;
uint32_t present_semaphore_index = 0;
};
public:
@@ -361,6 +359,7 @@ private:
VkColorSpaceKHR color_space = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
TightLocalVector<VkImage> images;
TightLocalVector<VkImageView> image_views;
TightLocalVector<VkSemaphore> present_semaphores;
TightLocalVector<FramebufferID> framebuffers;
LocalVector<CommandQueue *> command_queues_acquired;
LocalVector<uint32_t> command_queues_acquired_semaphores;