public override void Draw(ApplicationTime time) { Device.WaitIdle(); CommandBuffer cmd = Context.CommandBuffer; cmd.Begin(); cmd.BeginFramebuffer(Framebuffer); cmd.SetScissor(Window.FramebufferSize.Width, Window.FramebufferSize.Height, 0, 0); cmd.SetViewport(Window.FramebufferSize.Width, Window.FramebufferSize.Height, 0, 0); cmd.BindDescriptorSets(DescriptorSet_0); cmd.SetGraphicPipeline(PipelineState_0); GLTFModel.Draw(cmd, PipelineState_0); cmd.BindDescriptorSets(DescriptorSet_1); cmd.SetGraphicPipeline(PipelineState_1); GLTFModel.Draw(cmd, PipelineState_1); cmd.BindDescriptorSets(DescriptorSet_2); cmd.SetGraphicPipeline(PipelineState_2); GLTFModel.Draw(cmd, PipelineState_2); cmd.Close(); Device.Submit(cmd); SwapChain.Present(); }