Table of Contents

Struct RenderSessionCapabilities

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

What an attached render session supports.

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

Remarks

See mln_render_session_capabilities in the C API reference.

Constructors

RenderSessionCapabilities(RenderDriverKind, uint, RenderSessionCapabilityFlag, GpuSyncKind, GpuSyncKindFlag)

What an attached render session supports.

public RenderSessionCapabilities(RenderDriverKind Driver, uint TextureRingDepth, RenderSessionCapabilityFlag Flags, GpuSyncKind ProducerSyncKind, GpuSyncKindFlag ConsumerSyncKinds)

Parameters

Driver RenderDriverKind
TextureRingDepth uint

How many textures the session's texture ring has.

Flags RenderSessionCapabilityFlag
ProducerSyncKind GpuSyncKind

The kind of GpuSync that AcquiredFrameHandle.WithProducerSync() reports.

ConsumerSyncKinds GpuSyncKindFlag

The kinds of GpuSync that AcquiredFrameHandle.Release() accepts. They depend on the target and on what the device supports.

Remarks

See mln_render_session_capabilities in the C API reference.

Properties

ConsumerSyncKinds

The kinds of GpuSync that AcquiredFrameHandle.Release() accepts. They depend on the target and on what the device supports.

public GpuSyncKindFlag ConsumerSyncKinds { get; init; }

Property Value

GpuSyncKindFlag

Driver

public RenderDriverKind Driver { get; init; }

Property Value

RenderDriverKind

Flags

public RenderSessionCapabilityFlag Flags { get; init; }

Property Value

RenderSessionCapabilityFlag

ProducerSyncKind

The kind of GpuSync that AcquiredFrameHandle.WithProducerSync() reports.

public GpuSyncKind ProducerSyncKind { get; init; }

Property Value

GpuSyncKind

TextureRingDepth

How many textures the session's texture ring has.

public uint TextureRingDepth { get; init; }

Property Value

uint