Table of Contents

Struct MetalSurfaceReplacement

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A new Metal layer for RenderSessionHandle.SetMetalSurfaceTargetAsync().

public readonly record struct MetalSurfaceReplacement : IEquatable<MetalSurfaceReplacement>
Implements
Inherited Members

Remarks

The session renders to it with the device that it attached with. 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_replacement in the C API reference.

Constructors

MetalSurfaceReplacement(LogicalSize, NativePointer)

[SetsRequiredMembers]
public MetalSurfaceReplacement(LogicalSize LogicalSize, NativePointer Layer)

Parameters

LogicalSize LogicalSize
Layer NativePointer

Properties

Layer

Your CAMetalLayer.

public required NativePointer Layer { get; init; }

Property Value

NativePointer

LogicalSize

public required LogicalSize LogicalSize { get; init; }

Property Value

LogicalSize