Vixen
02b45cc4
csharp
public enum SurfaceKind

Which windowing system a surface handle belongs to, and therefore how to read it.

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

Remarks

The set is closed on purpose: a graphics backend switches over it exhaustively, and a new entry should be a compile error in every backend rather than a runtime surprise in one.

Fields and properties (7)

  • None

    Nothing to present to.

  • Win32

    Win32. Display is the HINSTANCE, Handle the HWND.

  • Xlib

    X11. Display is the Display*, Handle the Window XID.

  • Wayland

    Wayland. Display is the wl_display*, Handle the wl_surface*.

  • Metal

    Apple. Handle is a CAMetalLayer*, which is what VK_EXT_metal_surface wants and what MoltenVK presents through.

  • Android

    Android. Handle is the ANativeWindow*.

  • Web

    A browser canvas, identified by its element id rather than by a pointer.

Used by (8)

  • DesktopPlatformTestsVixen.Platform.Desktop.Tests
  • DesktopSurfaceVixen.Platform.Desktop
  • HeadlessPlatformTestsVixen.Platform.Headless.Tests
  • NativeWebGpuSurfacesVixen.Graphics.WebGPU
  • SurfaceHandleVixen.Core
  • VulkanSurfaceVixen.Graphics.Vulkan
  • VulkanSwapChainTestsVixen.Graphics.Vulkan.Tests
  • WindowsDialogsVixen.Platform.Windows