Files
stas-barecky/Library/PackageCache/com.unity.shadergraph@3cfe1d1f3f8c/Editor/Generation/Data/KeywordEntry.cs
2026-01-08 20:43:08 +05:00

29 lines
780 B
C#

using System;
namespace UnityEditor.ShaderGraph
{
[Serializable]
[GenerationAPI]
internal struct KeywordEntry
{
public int id; // Used to determine what MaterialSlot an entry belongs to
public string displayName;
public string referenceName;
// In this case, we will handle the actual IDs later
public KeywordEntry(string displayName, string referenceName)
{
this.id = -1;
this.displayName = displayName;
this.referenceName = referenceName;
}
internal KeywordEntry(int id, string displayName, string referenceName)
{
this.id = id;
this.displayName = displayName;
this.referenceName = referenceName;
}
}
}