Esempio n. 1
0
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     if (platformRenderContext == null)
     {
         platformRenderContext = new Graphics.Platform.Vulkan.PlatformRenderContext();
         PlatformRenderer.Initialize(platformRenderContext);
     }
     RecreateSwapchain();
 }
Esempio n. 2
0
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     if (platformRenderContext == null)
     {
         platformRenderContext = new Graphics.Platform.Vulkan.PlatformRenderContext();
         PlatformRenderer.Initialize(platformRenderContext);
     }
     swapchain = new Graphics.Platform.Vulkan.Swapchain(platformRenderContext, Handle, ClientSize.Width, ClientSize.Height);
 }