Struct VulkanSurfaceDescriptor
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
A Vulkan surface to present to, for MapHandle.AttachVulkanSurface().
public readonly record struct VulkanSurfaceDescriptor : IEquatable<VulkanSurfaceDescriptor>
- Implements
- Inherited Members
Remarks
The device must have VK_KHR_swapchain enabled, and the queue family of
graphics_queue_family_index must support presenting to the surface.
The session creates the swapchain. It uses the surface until a replacement
or release of the target completes, a detach or release of the session
completes, or an abandon of it returns.
See mln_vulkan_surface_descriptor in the C API reference.
Constructors
VulkanSurfaceDescriptor(LogicalSize, VulkanContextDescriptor, ulong)
[SetsRequiredMembers]
public VulkanSurfaceDescriptor(LogicalSize LogicalSize, VulkanContextDescriptor Context, ulong Surface)
Parameters
LogicalSizeLogicalSizeContextVulkanContextDescriptorSurfaceulong
Properties
Context
public required VulkanContextDescriptor Context { get; init; }
Property Value
LogicalSize
public required LogicalSize LogicalSize { get; init; }
Property Value
Surface
Your VkSurfaceKHR.
public required ulong Surface { get; init; }