Singularity/Library/PackageCache/com.unity.shadergraph@12.1.11/Editor/Generation/Enumerations/InstancingOptions.cs

32 lines
798 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
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();
}
}
}
}