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(); }
private void CreateMesh(IMesh mesh) { _meshes.Add(mesh, VeldridGeometry.Create(mesh)); }