csharp
public enum SurfaceKindWhich 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)
NoneNothing to present to.
Win32Win32. Display is the HINSTANCE, Handle the HWND.
XlibX11. Display is the Display*, Handle the Window XID.
WaylandWayland. Display is the wl_display*, Handle the wl_surface*.
MetalApple. Handle is a CAMetalLayer*, which is what VK_EXT_metal_surface wants and what MoltenVK presents through.
AndroidAndroid. Handle is the ANativeWindow*.
WebA 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