You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user