Table of Contents

Struct MetalBorrowedTextureReplacement

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

New Metal textures for a borrowed ring, for RenderSessionHandle.SetMetalBorrowedTextureTargetAsync().

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

Remarks

The members and the textures follow the rules of MetalBorrowedTextureDescriptor. The ring keeps its depth, device, and command queue, so give it as many textures as it attached with, on the same device.

See mln_metal_borrowed_texture_replacement in the C API reference.

Constructors

MetalBorrowedTextureReplacement(LogicalSize, uint, uint, ImmutableArray<MetalBorrowedTexture>)

[SetsRequiredMembers]
public MetalBorrowedTextureReplacement(LogicalSize LogicalSize, uint PhysicalWidth, uint PhysicalHeight, ImmutableArray<MetalBorrowedTexture> Textures)

Parameters

LogicalSize LogicalSize
PhysicalWidth uint
PhysicalHeight uint
Textures ImmutableArray<MetalBorrowedTexture>

Properties

LogicalSize

public required LogicalSize LogicalSize { get; init; }

Property Value

LogicalSize

PhysicalHeight

public required uint PhysicalHeight { get; init; }

Property Value

uint

PhysicalWidth

public required uint PhysicalWidth { get; init; }

Property Value

uint

Textures

public required ImmutableArray<MetalBorrowedTexture> Textures { get; init; }

Property Value

ImmutableArray<MetalBorrowedTexture>