OffscreenDeviceOptions class final

Options for OffscreenDeviceHandle.create().

See mln_offscreen_device_options in the C API reference.

Constructors

OffscreenDeviceOptions({int? adapterIndex, bool? singleContext, OpenGlClientApi? clientApi})
const

Properties

adapterIndex → int?
The GPU to use, as an index into the platform's list of GPUs.
final
clientApi → OpenGlClientApi?
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.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
singleContext → bool?
Whether the device's sessions take turns in one OpenGL context instead of having one each. Only an EGL device reads it.
final

Methods

copyWith({int? adapterIndex, bool? singleContext, OpenGlClientApi? clientApi}) → OffscreenDeviceOptions
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited