From: Jean-Philippe Bruyère Date: Sun, 5 Dec 2021 07:02:55 +0000 (+0100) Subject: texture ok, should test if single value is default for proxies to set the count to... X-Git-Tag: v0.2.4-beta~3 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=b9ddb637acb5a5dd9219c9497b09e266ef1ed8b9;p=jp%2Fvke.net.git texture ok, should test if single value is default for proxies to set the count to 0 in the createInfo struct --- 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;