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
LogicalSizeLogicalSizePhysicalWidthuintPhysicalHeightuintTexturesImmutableArray<MetalBorrowedTexture>
Properties
LogicalSize
public required LogicalSize LogicalSize { get; init; }
Property Value
PhysicalHeight
public required uint PhysicalHeight { get; init; }
Property Value
PhysicalWidth
public required uint PhysicalWidth { get; init; }
Property Value
Textures
public required ImmutableArray<MetalBorrowedTexture> Textures { get; init; }