(MAJOR) Removed all in paramters as their performance impact is too hard to predict

This commit is contained in:
DarthAffe committed 2024-07-21 23:10:56 +02:00
1 parent 6f0711564c
commit c39849949a
38 files changed
+157 -155

No files matched your search

@@ -18,7 +18,7 @@ public sealed class AverageByteSampler : ISampler<byte>
#region Methods
/// <inheritdoc />
public unsafe void Sample(in SamplerInfo<byte> info, Span<byte> pixelData)
public unsafe void Sample(SamplerInfo<byte> info, Span<byte> pixelData)
{
int count = info.Width * info.Height;
if (count == 0) return;
@@ -12,7 +12,7 @@ public sealed class AverageFloatSampler : ISampler<float>
#region Methods
/// <inheritdoc />
public unsafe void Sample(in SamplerInfo<float> info, Span<float> pixelData)
public unsafe void Sample(SamplerInfo<float> info, Span<float> pixelData)
{
int count = info.Width * info.Height;
if (count == 0) return;