]> O.S.I.I.S - jp/vke.net.git/commitdiff
texture ok, should test if single value is default for proxies to set the count to...
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sun, 5 Dec 2021 07:02:55 +0000 (08:02 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sun, 5 Dec 2021 07:02:55 +0000 (08:02 +0100)
vke/src/base/CommandBuffer.cs

index 6c45cc0e3444c75bd5d00043d44b935ccbb9f062..a25b23a23ad2d279484e5c9aa2b7d52af74c485c 100644 (file)
@@ -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;