void draw() { base.prepareFrame(); SubmitInfo.commandBufferCount = 1; SubmitInfo.pCommandBuffers = (VkCommandBuffer *)DrawCmdBuffers.GetAddress(currentBuffer); Util.CheckResult(vkQueueSubmit(Queue, 1, ref SubmitInfo, new VkFence())); base.submitFrame(); }
void draw() { prepareFrame(); SubmitInfo.commandBufferCount = 1; SubmitInfo.pCommandBuffers = (VkCommandBuffer *)DrawCmdBuffers.GetAddress(currentBuffer); Util.CheckResult(vkQueueSubmit(Queue, 1, ref SubmitInfo, NullHandle)); submitFrame(); }
protected void CreateCommandBuffers() { // Create one command buffer for each swap chain image and reuse for rendering DrawCmdBuffers.Resize(Swapchain.ImageCount); DrawCmdBuffers.Count = Swapchain.ImageCount; VkCommandBufferAllocateInfo cmdBufAllocateInfo = Initializers.CommandBufferAllocateInfo(CmdPool, VkCommandBufferLevel.Primary, DrawCmdBuffers.Count); Util.CheckResult(vkAllocateCommandBuffers(Device, ref cmdBufAllocateInfo, (VkCommandBuffer *)DrawCmdBuffers.Data)); }
void draw() { base.prepareFrame(); // Command buffer to be sumitted to the queue SubmitInfo.commandBufferCount = 1; SubmitInfo.pCommandBuffers = (VkCommandBuffer *)DrawCmdBuffers.GetAddress(currentBuffer); // Submit to queue Util.CheckResult(vkQueueSubmit(Queue, 1, ref SubmitInfo, NullHandle)); submitFrame(); }