Texture3DMaterialSlot.cs 1010 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using UnityEditor.Graphing;
  3. namespace UnityEditor.ShaderGraph
  4. {
  5. [Serializable]
  6. class Texture3DMaterialSlot : MaterialSlot
  7. {
  8. public Texture3DMaterialSlot()
  9. {}
  10. public Texture3DMaterialSlot(
  11. int slotId,
  12. string displayName,
  13. string shaderOutputName,
  14. SlotType slotType,
  15. ShaderStageCapability shaderStageCapability = ShaderStageCapability.All,
  16. bool hidden = false)
  17. : base(slotId, displayName, shaderOutputName, slotType, shaderStageCapability, hidden)
  18. {}
  19. public override SlotValueType valueType { get { return SlotValueType.Texture3D; } }
  20. public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Texture3D; } }
  21. public override void AddDefaultProperty(PropertyCollector properties, GenerationMode generationMode)
  22. {}
  23. public override void CopyValuesFrom(MaterialSlot foundSlot)
  24. {}
  25. }
  26. }