From b9ddb637acb5a5dd9219c9497b09e266ef1ed8b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sun, 5 Dec 2021 08:02:55 +0100 Subject: [PATCH] texture ok, should test if single value is default for proxies to set the count to 0 in the createInfo struct --- vke/src/base/CommandBuffer.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vke/src/base/CommandBuffer.cs b/vke/src/base/CommandBuffer.cs index 6c45cc0..a25b23a 100644 --- a/vke/src/base/CommandBuffer.cs +++ b/vke/src/base/CommandBuffer.cs @@ -39,9 +39,14 @@ namespace vke { public void Submit (VkQueue queue, VkSemaphore wait = default, VkSemaphore signal = default, Fence fence = null) { VkSubmitInfo submit_info = VkSubmitInfo.New (); submit_info.pWaitDstStageMask = VkPipelineStageFlags.ColorAttachmentOutput; - if (signal != VkSemaphore.Null) + if (signal == VkSemaphore.Null) + submit_info.pSignalSemaphores = null; + else submit_info.pSignalSemaphores = signal; - if (wait != VkSemaphore.Null) + + if (wait == VkSemaphore.Null) + submit_info.pWaitSemaphores = null; + else submit_info.pWaitSemaphores = wait; submit_info.pCommandBuffers = handle; -- 2.47.3