Table of Contents

Struct OpenGlBorrowedTextureReplacement

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

New OpenGL textures for a borrowed ring, for RenderSessionHandle.SetOpenGlBorrowedTextureTargetAsync().

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

Remarks

The members and the textures follow the rules of OpenGlBorrowedTextureDescriptor. The ring keeps its depth, context, and texture target, so give it as many textures as it attached with, in the same share group.

See mln_open_gl_borrowed_texture_replacement in the C API reference.

Constructors

OpenGlBorrowedTextureReplacement(LogicalSize, uint, uint, ImmutableArray<OpenGlBorrowedTexture>)

[SetsRequiredMembers]
public OpenGlBorrowedTextureReplacement(LogicalSize LogicalSize, uint PhysicalWidth, uint PhysicalHeight, ImmutableArray<OpenGlBorrowedTexture> Textures)

Parameters

LogicalSize LogicalSize
PhysicalWidth uint
PhysicalHeight uint
Textures ImmutableArray<OpenGlBorrowedTexture>

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<OpenGlBorrowedTexture> Textures { get; init; }

Property Value

ImmutableArray<OpenGlBorrowedTexture>