Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.8/Editor/Generation/Enumerations/InstancingOptions.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

32 lines
798 B
C#

using System;
namespace UnityEditor.ShaderGraph
{
[GenerationAPI]
internal enum InstancingOptions
{
RenderingLayer,
NoLightProbe,
NoLodFade,
}
[GenerationAPI]
internal static class InstancingOptionsExtensions
{
public static string ToShaderString(this InstancingOptions options)
{
switch (options)
{
case InstancingOptions.RenderingLayer:
return "renderinglayer";
case InstancingOptions.NoLightProbe:
return "nolightprobe";
case InstancingOptions.NoLodFade:
return "nolodfade";
default:
throw new ArgumentOutOfRangeException();
}
}
}
}