using UnityEngine.Rendering;
namespace TriLibCore.Utils
{
///
/// Represents a series of graphic settings utility methods.
///
public static class GraphicsSettingsUtils
{
/// Returns true if the project is using the Standard Rendering Pipeline.
public static bool IsUsingStandardPipeline => GraphicsSettings.renderPipelineAsset == null;
/// Returns true if the project is using the Universal Rendering Pipeline.
public static bool IsUsingUniversalPipeline => GraphicsSettings.renderPipelineAsset != null && (GraphicsSettings.renderPipelineAsset.name.StartsWith("UniversalRenderPipeline") || GraphicsSettings.renderPipelineAsset.name.StartsWith("UniversalRP") || GraphicsSettings.renderPipelineAsset.name.StartsWith("URP"));
/// Returns true if the project is using the HDRP Rendering Pipeline.
public static bool IsUsingHDRPPipeline => GraphicsSettings.renderPipelineAsset != null && GraphicsSettings.renderPipelineAsset.name.Contains("HD");
}
}