Unity-NorthStar / data /Packages /com.unity.render-pipelines.universal /Runtime /RenderGraph /RenderGraphGraphicsAutomatedTests.cs
| using System; | |
| using System.Collections.Generic; | |
| using UnityEngine.Experimental.Rendering; | |
| namespace UnityEngine.Rendering | |
| { | |
| /// <summary> | |
| /// Utility class to connect SRP to automated test framework. | |
| /// </summary> | |
| public static class RenderGraphGraphicsAutomatedTests | |
| { | |
| // RenderGraph tests can be enabled from the command line. Cache result to avoid GC. | |
| static bool activatedFromCommandLine | |
| { | |
| get => true; | |
| get => Array.Exists(Environment.GetCommandLineArgs(), arg => arg == "-render-graph-reuse-tests"); | |
| } | |
| /// <summary> | |
| /// Used by render pipelines to initialize RenderGraph tests. | |
| /// </summary> | |
| public static bool enabled { get; } = activatedFromCommandLine; | |
| } | |
| } | |