mirror of
https://github.com/DarthAffe/HPPH.git
synced 2025-12-12 13:28:37 +00:00
Added Span-overload for MinMax
This commit is contained in:
parent
d0f2e2d983
commit
9f313f77fb
@ -43,6 +43,9 @@ public static unsafe partial class PixelHelper
|
||||
ArrayPool<T>.Shared.Return(array);
|
||||
}
|
||||
}
|
||||
public static IMinMax MinMax<T>(this Span<T> colors)
|
||||
where T : struct, IColor
|
||||
=> T.ColorFormat.MinMax(MemoryMarshal.AsBytes(colors));
|
||||
|
||||
public static IMinMax MinMax<T>(this ReadOnlySpan<T> colors)
|
||||
where T : struct, IColor
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user