Editor/ShaderGraphPlus/ShaderFeatureWrapper.cs

Simple editor utility class that wraps a shader feature name and integer value for use with attributes (used in ShaderGraphPlus editor code). It stores a FeatureName and Value and exposes them via read-only properties.


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;
	}
}