Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

IMayRequireVertexID.cs 512B

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