MetalSurfaceDescriptor class final

A Metal layer to render to, for MapHandle.attachMetalSurface().

The session sets the layer's device, pixel format, and drawable size. It uses the layer until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.

See mln_metal_surface_descriptor in the C API reference.

Constructors

MetalSurfaceDescriptor({required LogicalSize logicalSize, MetalContextDescriptor context = const MetalContextDescriptor(), required NativePointer layer})
const

Properties

context → MetalContextDescriptor
The MTLDevice to render with. A null device picks the system's default.
final
hashCode → int
The hash code for this object.
no setterinherited
layer → NativePointer
Your CAMetalLayer.
final
logicalSize → LogicalSize
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({LogicalSize? logicalSize, MetalContextDescriptor? context, NativePointer? layer}) → MetalSurfaceDescriptor
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