Struct MetalSurfaceDescriptor
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
A Metal layer to render to, for MapHandle.AttachMetalSurface().
public readonly record struct MetalSurfaceDescriptor : IEquatable<MetalSurfaceDescriptor>
- Implements
- Inherited Members
Remarks
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(LogicalSize, MetalContextDescriptor, NativePointer)
[SetsRequiredMembers]
public MetalSurfaceDescriptor(LogicalSize LogicalSize, MetalContextDescriptor Context, NativePointer Layer)
Parameters
LogicalSizeLogicalSizeContextMetalContextDescriptorLayerNativePointer
Properties
Context
The MTLDevice to render with. A null device picks the system's default.
public MetalContextDescriptor Context { get; init; }
Property Value
Layer
Your CAMetalLayer.
public required NativePointer Layer { get; init; }
Property Value
LogicalSize
public required LogicalSize LogicalSize { get; init; }