Beispiel #1
0
        protected override void OnCreateSwapchainImage(VKImage image)
        {
            base.OnCreateSwapchainImage(image);

            CommandBufferController cb;

            CommandBuffer[image] = cb = new CommandBufferController(Graphics, image);
            cb.Begin();
            cb.Clear(Color.CornflowerBlue);
            cb.BeginPass(Pipeline);
            cb.Draw(Graphics.Square, Instances, Billboards);
            cb.EndPass();
            cb.End();

            TextRenderer.AddImage(image);

            MeshRenderer.AddImage(image);

            ParticleRenderer.AddImage(image);
        }