Table of Contents

Struct RenderTargetExtent

Namespace
Maplibre.NativeFfi.Render
Assembly
Maplibre.NativeFfi.dll
public readonly record struct RenderTargetExtent : IEquatable<RenderTargetExtent>
Implements
Inherited Members

Constructors

RenderTargetExtent(uint, uint, double)

public RenderTargetExtent(uint Width, uint Height, double ScaleFactor)

Parameters

Width uint
Height uint
ScaleFactor double

Properties

Height

public uint Height { get; init; }

Property Value

uint

ScaleFactor

public double ScaleFactor { get; init; }

Property Value

double

Width

public uint Width { get; init; }

Property Value

uint

Methods

PhysicalSize()

Returns the physical device-pixel size as ceil(logical * ScaleFactor) per dimension, which is how surface and session-owned texture targets are sized. Borrowed texture targets state their physical size instead.

public (uint Width, uint Height) PhysicalSize()

Returns

(uint Width, uint Height)