Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RenderGraphGraphicsAutomatedTests.cs 835B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine.Experimental.Rendering;
  4. namespace UnityEngine.Rendering
  5. {
  6. /// <summary>
  7. /// Utility class to connect SRP to automated test framework.
  8. /// </summary>
  9. public static class RenderGraphGraphicsAutomatedTests
  10. {
  11. // RenderGraph tests can be enabled from the command line. Cache result to avoid GC.
  12. static bool activatedFromCommandLine
  13. {
  14. #if RENDER_GRAPH_REUSE_TESTS_STANDALONE
  15. get => true;
  16. #else
  17. get => Array.Exists(Environment.GetCommandLineArgs(), arg => arg == "-render-graph-reuse-tests");
  18. #endif
  19. }
  20. /// <summary>
  21. /// Used by render pipelines to initialize RenderGraph tests.
  22. /// </summary>
  23. public static bool enabled { get; } = activatedFromCommandLine;
  24. }
  25. }