Vixen
dd8b0a81
csharp
public readonly record struct SwapChainDescription

What to create a swapchain as.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (6)

  • public SurfaceHandle Surface

    The window surface to present to.

  • public Int2 Size

    The size in pixels.

  • public PixelFormat Format

    The preferred format. A backend may return a different one, so read Format back rather than assuming.

  • public PresentMode PresentMode

    The preferred present mode. Falls back to Fifo, which is the only one every driver must support.

  • public int ImageCount

    How many images to ask for.

  • public ColorGamut Gamut

    The display gamut to ask for. A preference like Format: a backend that cannot pair the wider space with enough precision to be worth having falls back to Srgb, so read Format and the backend's reported gamut back rather than assuming the request was met.

Methods (1)

Used by (12)

  • AppGraphicsVixen.App.Hosting
  • GlDeviceVixen.Graphics.OpenGL
  • GlSwapChainVixen.Graphics.OpenGL
  • IGraphicsDeviceVixen.Graphics
  • NullDeviceVixen.Graphics.Null
  • NullDeviceTestsVixen.Graphics.Null.Tests
  • NullSwapChainVixen.Graphics.Null
  • VulkanDeviceVixen.Graphics.Vulkan
  • VulkanOffscreenSwapChainVixen.Graphics.Vulkan
  • VulkanSwapChainVixen.Graphics.Vulkan
  • WebGpuDeviceVixen.Graphics.WebGPU
  • WebGpuSwapChainVixen.Graphics.WebGPU