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