No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMayRequireDepthTexture.cs 548B

123456789101112131415161718
  1. using UnityEditor.Graphing;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. interface IMayRequireDepthTexture
  5. {
  6. bool RequiresDepthTexture(ShaderStageCapability stageCapability = ShaderStageCapability.All);
  7. }
  8. static class MayRequireDepthTextureExtensions
  9. {
  10. public static bool RequiresDepthTexture(this MaterialSlot slot)
  11. {
  12. var mayRequireDepthTexture = slot as IMayRequireDepthTexture;
  13. return mayRequireDepthTexture != null && mayRequireDepthTexture.RequiresDepthTexture();
  14. }
  15. }
  16. }