Simple wrapper class used in the editor to hold a shader feature name and an integer value, intended for use with OnAttribute. It stores FeatureName and Value set by the constructor.
namespace ShaderGraphPlus;
/// <summary>
/// Wrapper to contain a ShaderFeature for use with OnAttribute.
/// </summary>
public class ShaderFeatureWrapper
{
public string FeatureName { get; private set; }
public int Value { get; private set; }
public ShaderFeatureWrapper( string featureName, int value )
{
FeatureName = featureName;
Value = value;
}
}