Exemple #1
0
        public void Draw()
        {
            CommandList CommandList = Context.CommandList;

            Device.WaitIdle();

            CommandList.Begin();
            CommandList.BeginFramebuffer(Framebuffer);
            CommandList.Clear(0.0f, 0.2f, 0.4f, 1.0f);

            CommandList.SetViewport(Window.Width, Window.Height, 0, 0);
            CommandList.SetScissor(Window.Width, Window.Height, 0, 0);

            CommandList.EndFramebuffer();
            CommandList.End();
            CommandList.Submit();

            Device.NativeSwapChain.Present();
        }