12345678910111213141516171819202122232425262728293031 |
- 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();
- }
- }
- }
- }
|