Exemplo n.º 1
0
        private void Draw(float deltaSeconds)
        {
            VeldridGeometry mesh = new VeldridGeometry();

            _cl.Begin();
            _cl.SetFramebuffer(MainSwapchain.Framebuffer);
            _cl.ClearColorTarget(0, RgbaFloat.LightGrey);
            _cl.ClearDepthStencil(1f);

            _cl.End();
            GraphicsDevice.SubmitCommands(_cl);
            GraphicsDevice.SwapBuffers(MainSwapchain);
            GraphicsDevice.WaitForIdle();
        }
Exemplo n.º 2
0
 private void CreateMesh(IMesh mesh)
 {
     _meshes.Add(mesh, VeldridGeometry.Create(mesh));
 }