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