Brak opisu
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.

RenderGraphGlobalSettings.cs 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. namespace UnityEngine.Rendering
  3. {
  4. /// <summary>
  5. /// Render Graph global settings class.
  6. /// </summary>
  7. [Serializable]
  8. [SupportedOnRenderPipeline]
  9. [Categorization.CategoryInfo(Name = "Render Graph", Order = 50)]
  10. [Categorization.ElementInfo(Order = 0)]
  11. public class RenderGraphGlobalSettings : IRenderPipelineGraphicsSettings
  12. {
  13. enum Version
  14. {
  15. Initial,
  16. Count,
  17. Last = Count - 1
  18. }
  19. bool IRenderPipelineGraphicsSettings.isAvailableInPlayerBuild => true;
  20. [SerializeField, HideInInspector]
  21. private Version m_version = Version.Last;
  22. int IRenderPipelineGraphicsSettings.version => (int)m_version;
  23. [RecreatePipelineOnChange , SerializeField, Tooltip("Enable caching of render graph compilation from one frame to another.")]
  24. private bool m_EnableCompilationCaching = true;
  25. /// <summary>Enable Compilation caching for render graph.</summary>
  26. public bool enableCompilationCaching
  27. {
  28. get => m_EnableCompilationCaching;
  29. set => this.SetValueAndNotify(ref m_EnableCompilationCaching, value);
  30. }
  31. [RecreatePipelineOnChange , SerializeField, Tooltip("Enable validity checks of render graph in Editor and Development mode. Always disabled in Release build.")]
  32. private bool m_EnableValidityChecks = true;
  33. /// <summary>Enable validity checks for render graph. Always disabled in Release mode.</summary>
  34. public bool enableValidityChecks
  35. {
  36. get => m_EnableValidityChecks;
  37. set => this.SetValueAndNotify(ref m_EnableValidityChecks, value);
  38. }
  39. }
  40. }