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
InstanceNativePointerPhysicalDeviceNativePointerDeviceNativePointerGraphicsQueueNativePointerGraphicsQueueFamilyIndexuintGetInstanceProcAddrNativePointerGetDeviceProcAddrNativePointer
Properties
Device
A VkDevice.
public required NativePointer Device { get; init; }
Property Value
GetDeviceProcAddr
Your vkGetDeviceProcAddr, or null to look it up from the
instance.
public NativePointer GetDeviceProcAddr { get; init; }
Property Value
GetInstanceProcAddr
Your vkGetInstanceProcAddr, or null to use the Vulkan loader's.
public NativePointer GetInstanceProcAddr { get; init; }
Property Value
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
GraphicsQueueFamilyIndex
public uint GraphicsQueueFamilyIndex { get; init; }
Property Value
Instance
A VkInstance.
public required NativePointer Instance { get; init; }
Property Value
PhysicalDevice
A VkPhysicalDevice.
public required NativePointer PhysicalDevice { get; init; }