Table of Contents

Struct VulkanContextDescriptor

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

The Vulkan device and queue that a render session uses.

public readonly record struct VulkanContextDescriptor : IEquatable<VulkanContextDescriptor>
Implements
Inherited Members

Remarks

Keep these objects alive until a detach or release of the session completes, or an abandon of it returns.

See mln_vulkan_context_descriptor in the C API reference.

Constructors

VulkanContextDescriptor(NativePointer, NativePointer, NativePointer, NativePointer, uint, NativePointer, NativePointer)

[SetsRequiredMembers]
public VulkanContextDescriptor(NativePointer Instance, NativePointer PhysicalDevice, NativePointer Device, NativePointer GraphicsQueue, uint GraphicsQueueFamilyIndex, NativePointer GetInstanceProcAddr, NativePointer GetDeviceProcAddr)

Parameters

Instance NativePointer
PhysicalDevice NativePointer
Device NativePointer
GraphicsQueue NativePointer
GraphicsQueueFamilyIndex uint
GetInstanceProcAddr NativePointer
GetDeviceProcAddr NativePointer

Properties

Device

A VkDevice.

public required NativePointer Device { get; init; }

Property Value

NativePointer

GetDeviceProcAddr

Your vkGetDeviceProcAddr, or null to look it up from the instance.

public NativePointer GetDeviceProcAddr { get; init; }

Property Value

NativePointer

GetInstanceProcAddr

Your vkGetInstanceProcAddr, or null to use the Vulkan loader's.

public NativePointer GetInstanceProcAddr { get; init; }

Property Value

NativePointer

GraphicsQueue

A VkQueue from graphics_queue_family_index that supports graphics. If you submit to it too, set RenderSessionAttachOptions.QueueLock.

public required NativePointer GraphicsQueue { get; init; }

Property Value

NativePointer

GraphicsQueueFamilyIndex

public uint GraphicsQueueFamilyIndex { get; init; }

Property Value

uint

Instance

A VkInstance.

public required NativePointer Instance { get; init; }

Property Value

NativePointer

PhysicalDevice

A VkPhysicalDevice.

public required NativePointer PhysicalDevice { get; init; }

Property Value

NativePointer