Exemple #1
0
        void draw()
        {
            base.prepareFrame();

            SubmitInfo.commandBufferCount = 1;
            SubmitInfo.pCommandBuffers    = (VkCommandBuffer *)DrawCmdBuffers.GetAddress(currentBuffer);
            Util.CheckResult(vkQueueSubmit(Queue, 1, ref SubmitInfo, new VkFence()));

            base.submitFrame();
        }
Exemple #2
0
        void draw()
        {
            prepareFrame();

            SubmitInfo.commandBufferCount = 1;
            SubmitInfo.pCommandBuffers    = (VkCommandBuffer *)DrawCmdBuffers.GetAddress(currentBuffer);
            Util.CheckResult(vkQueueSubmit(Queue, 1, ref SubmitInfo, NullHandle));

            submitFrame();
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        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();
        }