Class RenderGraphGlobalSettings
A graphics settings container for settings related to the Render Graph for all Scriptable Render Pipelines.
Implements
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
[SupportedOnRenderPipeline(new Type[] { })]
[CategoryInfo(Name = "Render Graph", Order = 50)]
[ElementInfo(Order = 0)]
public class RenderGraphGlobalSettings : IRenderPipelineGraphicsSettings
Remarks
To change those settings, go to Editor > Project Settings in the Graphics tab. Changing this through the API is only allowed in the Editor. In the Player, this raises an error.
Examples
This example demonstrates how to determine if your project uses RenderGraph's compilation caching.
using UnityEngine.Rendering;
public static class RenderGraphHelper
{
public static bool enableCompilationCaching
{
get
{
var gs = GraphicsSettings.GetRenderPipelineSettings<RenderGraphGlobalSettings>();
if (gs == null) //not in SRP
return false;
return gs.enableCompilationCaching;
}
}
}
Properties
enableCompilationCaching
Enable Compilation caching for render graph.
Declaration
public bool enableCompilationCaching { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
enableValidityChecks
Enable validity checks for render graph. Always disabled in Release mode.
Declaration
public bool enableValidityChecks { get; set; }
Property Value
Type | Description |
---|---|
bool |