22 lines
700 B
C#
22 lines
700 B
C#
using UnityEngine.Rendering;
|
|
|
|
namespace UnityEngine.XR.ARSubsystems
|
|
{
|
|
/// <summary>
|
|
/// A utilities class for containing universally useful Rendering operations and information
|
|
/// for rendering AR.
|
|
/// </summary>
|
|
public static class ARRenderingUtils
|
|
{
|
|
static bool? s_UseLegacyRenderPipeline;
|
|
|
|
/// <summary>
|
|
/// Whether to use the legacy rendering pipeline.
|
|
/// </summary>
|
|
/// <value>
|
|
/// <c>true</c> if the legacy render pipeline is in use. Otherwise, <c>false</c>.
|
|
/// </value>
|
|
public static bool useLegacyRenderPipeline => s_UseLegacyRenderPipeline ??= GraphicsSettings.currentRenderPipeline == null;
|
|
}
|
|
}
|