Table of Contents

Struct AndroidHardwareBufferRingDescriptor

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A ring of Android hardware buffers that the library allocates, for MapHandle.AttachAndroidHardwareBufferRing().

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

Remarks

Each buffer has the map's size in pixels, logical_size times the map's scale factor, and the format AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM. Its usage is AHARDWAREBUFFER_USAGE_GPU_COLOR_OUTPUT, AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE, and the bits of usage.

See mln_android_hardware_buffer_ring_descriptor in the C API reference.

Constructors

AndroidHardwareBufferRingDescriptor(LogicalSize, uint, ulong)

[SetsRequiredMembers]
public AndroidHardwareBufferRingDescriptor(LogicalSize LogicalSize, uint BufferCount, ulong Usage)

Parameters

LogicalSize LogicalSize
BufferCount uint
Usage ulong

Properties

BufferCount

How many buffers the ring has, from 1 to 8.

public required uint BufferCount { get; init; }

Property Value

uint

LogicalSize

public required LogicalSize LogicalSize { get; init; }

Property Value

LogicalSize

Usage

More AHARDWAREBUFFER_USAGE_* bits that your reads need, such as AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN, or zero.

public ulong Usage { get; init; }

Property Value

ulong