示例#1
0
 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);
 }
示例#2
0
        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();
        }
示例#3
0
 public EventPage()
 {
     CommandLists.Add(Guid.NewGuid(), new List <EventCommand>());
 }