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
DriverRenderDriverKindTextureRingDepthuintHow many textures the session's texture ring has.
FlagsRenderSessionCapabilityFlagProducerSyncKindGpuSyncKindThe kind of
GpuSyncthatAcquiredFrameHandle.WithProducerSync()reports.ConsumerSyncKindsGpuSyncKindFlagThe kinds of
GpuSyncthatAcquiredFrameHandle.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
Driver
public RenderDriverKind Driver { get; init; }
Property Value
Flags
public RenderSessionCapabilityFlag Flags { get; init; }
Property Value
ProducerSyncKind
The kind of GpuSync that
AcquiredFrameHandle.WithProducerSync() reports.
public GpuSyncKind ProducerSyncKind { get; init; }
Property Value
TextureRingDepth
How many textures the session's texture ring has.
public uint TextureRingDepth { get; init; }