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
WidthuintHeightuintScaleFactordoubleSlotuintThe texture's index in the descriptor's
textures.TextureNativePointerThe MTLTexture.
DeviceNativePointerThe texture's MTLDevice.
PixelFormatulongThe 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
Height
public uint Height { get; init; }
Property Value
PixelFormat
The texture's MTLPixelFormat.
public ulong PixelFormat { get; init; }
Property Value
ScaleFactor
public double ScaleFactor { get; init; }
Property Value
Slot
The texture's index in the descriptor's textures.
public uint Slot { get; init; }
Property Value
Texture
The MTLTexture.
public NativePointer Texture { get; init; }
Property Value
Width
public uint Width { get; init; }