I have some offending code that insta crash when hovering the pin:
public readonly record struct ReadbackOptions(
int FrameDelayCount = 3,
bool ForceBlocking = false,
Int2? TargetResolution = null,
ReadbackFormat Format = ReadbackFormat.Qoi
)
{
public const int DefaultFrameDelayCount = 3;
public const int MinFrameDelayCount = 1;
public const int MaxFrameDelayCount = 16;
public ReadbackOptions Normalized
{
get
{
var delay = FrameDelayCount <= 0
? DefaultFrameDelayCount
: Math.Clamp(FrameDelayCount, MinFrameDelayCount, MaxFrameDelayCount);
var target = TargetResolution is { } t && t.X > 0 && t.Y > 0 ? t : (Int2?)null;
return this with { FrameDelayCount = delay, TargetResolution = target };
}
}
}
public enum ReadbackFormat
{
Qoi
}
The issue is a getter, has recursive definition.
record-struct-crash.zip (5.1 KB)