Table of Contents

Class OffscreenDeviceOptions

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

Options for OffscreenDeviceHandle.Create().

public sealed record OffscreenDeviceOptions : IEquatable<OffscreenDeviceOptions>
Inheritance
OffscreenDeviceOptions
Implements
Inherited Members

Remarks

See mln_offscreen_device_options in the C API reference.

Properties

AdapterIndex

The GPU to use, as an index into the platform's list of GPUs.

public uint? AdapterIndex { get; init; }

Property Value

uint?

ClientApi

The OpenGL API that the device's sessions render with. An EGL device defaults to OpenGlClientApi.Gles, and takes OpenGlClientApi.Gl too on Linux and FreeBSD. A WGL device takes only OpenGlClientApi.Gl, its default, and a WebGL device only OpenGlClientApi.Gles, its default. Other devices take neither.

public OpenGlClientApi? ClientApi { get; init; }

Property Value

OpenGlClientApi?

SingleContext

Whether the device's sessions take turns in one OpenGL context instead of having one each. Only an EGL device reads it.

public bool? SingleContext { get; init; }

Property Value

bool?