using System;
namespace RGB.NET.Core
{
///
/// Represents the information used to sample data.
///
/// The type of the data to sample.
public readonly ref struct SamplerInfo
{
#region Properties & Fields
///
/// Gets the width of the region the data comes from.
///
public int Width { get; }
///
/// Gets the height of region the data comes from.
///
public int Height { get; }
///
/// Gets the data to sample.
///
public ReadOnlySpan Data { get; }
#endregion
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The width of the region the data comes from.
/// The height of region the data comes from.
/// The data to sample.
public SamplerInfo(int width, int height, ReadOnlySpan data)
{
this.Width = width;
this.Height = height;
this.Data = data;
}
#endregion
}
}