Files
Team-A-dream-traveler-unity…/My project/Library/PackageCache/com.unity.shadergraph@eae1bed04ba5/Editor/Data/Interfaces/IMayRequireDepthTexture.cs
T
2026-11-24 15:51:02 +01:00

19 lines
548 B
C#

using UnityEditor.Graphing;
namespace UnityEditor.ShaderGraph
{
interface IMayRequireDepthTexture
{
bool RequiresDepthTexture(ShaderStageCapability stageCapability = ShaderStageCapability.All);
}
static class MayRequireDepthTextureExtensions
{
public static bool RequiresDepthTexture(this MaterialSlot slot)
{
var mayRequireDepthTexture = slot as IMayRequireDepthTexture;
return mayRequireDepthTexture != null && mayRequireDepthTexture.RequiresDepthTexture();
}
}
}