public void Ctor_SetsProperties(PixelFormat?depthFormat, bool syncToVerticalBlank) { Sdl2Window window = new Sdl2Window("SwapchainTestWindow", 0, 0, 100, 100, SDL_WindowFlags.Hidden, false); SwapchainSource source = VeldridStartup.GetSwapchainSource(window); SwapchainDescription swapchainDesc = new SwapchainDescription(source, 100, 100, depthFormat, syncToVerticalBlank); Swapchain swapchain = RF.CreateSwapchain(ref swapchainDesc); if (depthFormat == null) { Assert.Null(swapchain.Framebuffer.DepthTarget); } else { Assert.NotNull(swapchain.Framebuffer.DepthTarget); Assert.Equal(depthFormat, swapchain.Framebuffer.DepthTarget.Value.Target.Format); } Assert.Equal(syncToVerticalBlank, swapchain.SyncToVerticalBlank); window.Close(); }