Table of Contents

Struct MetalTextureFrame

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

The Metal texture of an acquired frame.

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

Remarks

See mln_metal_texture_frame in the C API reference.

Constructors

MetalTextureFrame(uint, uint, double, uint, NativePointer, NativePointer, ulong)

The Metal texture of an acquired frame.

public MetalTextureFrame(uint Width, uint Height, double ScaleFactor, uint Slot, NativePointer Texture, NativePointer Device, ulong PixelFormat)

Parameters

Width uint
Height uint
ScaleFactor double
Slot uint

The texture's index in the descriptor's textures.

Texture NativePointer

The MTLTexture.

Device NativePointer

The texture's MTLDevice.

PixelFormat ulong

The texture's MTLPixelFormat.

Remarks

See mln_metal_texture_frame in the C API reference.

Properties

Device

The texture's MTLDevice.

public NativePointer Device { get; init; }

Property Value

NativePointer

Height

public uint Height { get; init; }

Property Value

uint

PixelFormat

The texture's MTLPixelFormat.

public ulong PixelFormat { get; init; }

Property Value

ulong

ScaleFactor

public double ScaleFactor { get; init; }

Property Value

double

Slot

The texture's index in the descriptor's textures.

public uint Slot { get; init; }

Property Value

uint

Texture

The MTLTexture.

public NativePointer Texture { get; init; }

Property Value

NativePointer

Width

public uint Width { get; init; }

Property Value

uint