Development repository for FSR2 integration into Unity Post-Processing Stack V2.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
963 B

using System;
namespace UnityEngine.Rendering.PostProcessing
{
/// <summary>
/// Use this attribute to specify a range between a min and a max value.
/// </summary>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class MinMaxAttribute : Attribute
{
/// <summary>
/// The minimum limit of the user defined range.
/// </summary>
public readonly float min;
/// <summary>
/// The maximum limit of the user defined range.
/// </summary>
public readonly float max;
/// <summary>
/// Creates a new attribute.
/// </summary>
/// <param name="min">The minimum limit of the user defined range</param>
/// <param name="max">The maximum limit of the user defined range</param>
public MinMaxAttribute(float min, float max)
{
this.min = min;
this.max = max;
}
}
}