IoSurfaceRingDescriptor class final

A ring of IOSurfaces that the library allocates, for MapHandle.attachIoSurfaceRing().

Each surface has the map's size in pixels, logical_size times the map's scale factor, and the pixel format kCVPixelFormatType_32BGRA, which Metal names MTLPixelFormatBGRA8Unorm.

See mln_io_surface_ring_descriptor in the C API reference.

Constructors

IoSurfaceRingDescriptor({required LogicalSize logicalSize, required int bufferCount, MetalContextDescriptor context = const MetalContextDescriptor()})
const

Properties

bufferCount → int
How many surfaces the ring has, from 1 to 8.
final
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
logicalSize → LogicalSize
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({LogicalSize? logicalSize, int? bufferCount, MetalContextDescriptor? context}) → IoSurfaceRingDescriptor
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