Table of Contents

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

LogicalSize LogicalSize
Context VulkanContextDescriptor
Surface ulong

Properties

Context

public required VulkanContextDescriptor Context { get; init; }

Property Value

VulkanContextDescriptor

LogicalSize

public required LogicalSize LogicalSize { get; init; }

Property Value

LogicalSize

Surface

Your VkSurfaceKHR.

public required ulong Surface { get; init; }

Property Value

ulong