initial commit
This commit is contained in:
parent
6715289efe
commit
788c3389af
37645 changed files with 2526849 additions and 80 deletions
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
|
||||
namespace UnityEngine.Rendering
|
||||
{
|
||||
/// <summary>
|
||||
/// Utility class to connect SRP to automated test framework.
|
||||
/// </summary>
|
||||
public static class XRGraphicsAutomatedTests
|
||||
{
|
||||
// XR tests can be enabled from the command line. Cache result to avoid GC.
|
||||
static bool activatedFromCommandLine
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
// XRTODO: remove temporary alias when all automated tests are ready to use MockHMD
|
||||
get => Array.Exists(Environment.GetCommandLineArgs(), arg => (arg == "-xr-tests" || arg == "-xr-reuse-tests"));
|
||||
#elif XR_REUSE_TESTS_STANDALONE
|
||||
get => true;
|
||||
#else
|
||||
get => false;
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Used by render pipelines to initialize XR tests.
|
||||
/// </summary>
|
||||
public static bool enabled { get; } = activatedFromCommandLine;
|
||||
|
||||
/// <summary>
|
||||
/// Set by automated test framework and read by render pipelines.
|
||||
/// </summary>
|
||||
public static bool running = false;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a88e3e436344c9246acd63d2edca6fdf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue