using System;
namespace UnityEngine.Rendering
{
///
/// Utility class to connect SRP to automated test framework.
///
public static class XRGraphicsAutomatedTests
{
// XR tests can be enabled from the command line. Cache result to avoid GC.
static bool activatedFromCommandLine { get => Array.Exists(Environment.GetCommandLineArgs(), arg => arg == "-xr-tests"); }
///
/// Used by render pipelines to initialize XR tests.
///
public static bool enabled { get; } = activatedFromCommandLine;
///
/// Set by automated test framework and read by render pipelines.
///
public static bool running = false;
}
}