TextureSamplerState.cs 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEditor.ShaderGraph
  4. {
  5. [Serializable]
  6. class TextureSamplerState
  7. {
  8. public enum FilterMode
  9. {
  10. Linear,
  11. Point,
  12. Trilinear
  13. }
  14. public enum WrapMode
  15. {
  16. Repeat,
  17. Clamp,
  18. Mirror,
  19. MirrorOnce
  20. }
  21. [SerializeField] private FilterMode m_filter = FilterMode.Linear;
  22. public FilterMode filter
  23. {
  24. get { return m_filter; }
  25. set
  26. {
  27. if (m_filter == value)
  28. return;
  29. m_filter = value;
  30. }
  31. }
  32. [SerializeField] private WrapMode m_wrap = WrapMode.Repeat;
  33. public WrapMode wrap
  34. {
  35. get { return m_wrap; }
  36. set
  37. {
  38. if (m_wrap == value)
  39. return;
  40. m_wrap = value;
  41. }
  42. }
  43. }
  44. }