1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 17:48:31 +00:00

Removed SkipLocalInit-Attributes - they're causing issues and are not worth the effort for now

This commit is contained in:
Darth Affe 2023-04-13 11:29:22 +02:00
parent 260a820b80
commit ad75707645
3 changed files with 0 additions and 5 deletions

View File

@ -76,7 +76,6 @@ public abstract class PixelTexture<T> : ITexture
/// <param name="width">The with of the region.</param>
/// <param name="height">The height of the region.</param>
/// <returns>The sampled color.</returns>
[SkipLocalsInit]
public virtual Color this[int x, int y, int width, int height]
{
get

View File

@ -1,6 +1,5 @@
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using RGB.NET.Core;
@ -20,7 +19,6 @@ public class AverageByteSampler : ISampler<byte>
#region Methods
/// <inheritdoc />
[SkipLocalsInit]
public unsafe void Sample(in SamplerInfo<byte> info, in Span<byte> pixelData)
{
int count = info.Width * info.Height;

View File

@ -1,6 +1,5 @@
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using RGB.NET.Core;
@ -14,7 +13,6 @@ public class AverageFloatSampler : ISampler<float>
#region Methods
/// <inheritdoc />
[SkipLocalsInit]
public unsafe void Sample(in SamplerInfo<float> info, in Span<float> pixelData)
{
int count = info.Width * info.Height;