protected override void OnInitialize() { commandList = GraphicsDevice.ResourceFactory.CreateCommandList(); CommandLists.Add(commandList); imGuiRenderer = new ImGuiRenderer( GraphicsDevice, GraphicsDevice.MainSwapchain.Framebuffer.OutputDescription, WIDTH, HEIGHT ); Window.Resized += () => imGuiRenderer.WindowResized(Window.Width, Window.Height); }
protected override void OnInitialize() { var scene = Scenes[1].GetScene(WIDTH, HEIGHT); Raytracer.LoadScene(scene); Raytracer.FrameBuffer = new RgbaFloat[WIDTH * HEIGHT]; CreateDeviceResources(); CommandLists.Add(commandList); Window.Resized += OnResized; base.OnInitialize(); OnResized(); }
public EventPage() { CommandLists.Add(Guid.NewGuid(), new List <EventCommand>()); }