MetalBorrowedTextureDescriptor class final

A ring of your Metal textures, for MapHandle.attachMetalBorrowedTexture().

logical_size sets the map's size. physical_width and physical_height give the textures' size in pixels, which is usually logical_size times the map's scale factor. The textures must all have that size, one device, one pixel format, one sample, and MTLTextureUsageRenderTarget. The ring holds up to textureRingMaxDepth distinct textures.

The session uses the textures 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_borrowed_texture_descriptor in the C API reference.

Constructors

MetalBorrowedTextureDescriptor({required LogicalSize logicalSize, required int physicalWidth, required int physicalHeight, required List<MetalBorrowedTexture> textures, NativePointer commandQueue = NativePointer.nullPointer})

Properties

commandQueue → NativePointer
Your MTLCommandQueue on the textures' device, or null for a queue of the session's own. With your queue, frames can use GpuSyncKind.queueOrder.
final
hashCode → int
The hash code for this object.
no setterinherited
logicalSize → LogicalSize
final
physicalHeight → int
final
physicalWidth → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textures → List<MetalBorrowedTexture>
final

Methods

copyWith({LogicalSize? logicalSize, int? physicalWidth, int? physicalHeight, List<MetalBorrowedTexture>? textures, NativePointer? commandQueue}) → MetalBorrowedTextureDescriptor
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