using System;
using System.Collections.Generic;
using UnityEngine.Experimental.Rendering;
namespace UnityEngine.Rendering
{
///
/// Utility class to connect SRP to automated test framework.
///
public static class RenderGraphGraphicsAutomatedTests
{
// RenderGraph tests can be enabled from the command line. Cache result to avoid GC.
static bool activatedFromCommandLine
{
#if RENDER_GRAPH_REUSE_TESTS_STANDALONE
get => true;
#else
get => Array.Exists(Environment.GetCommandLineArgs(), arg => arg == "-render-graph-reuse-tests");
#endif
}
///
/// Used by render pipelines to initialize RenderGraph tests.
///
public static bool enabled { get; } = activatedFromCommandLine;
}
}