using System.ComponentModel;
namespace UnityEngine.XR.ARSubsystems
{
///
/// Represents the environment mode.
///
public enum EnvironmentDepthMode
{
///
/// The environment depth is disabled and will not be generated.
///
Disabled = 0,
///
/// The environment depth is enabled and will be generated at the fastest resolution.
///
///
/// On mode, there is no smoothing or other post processing applied to the texture.
///
Fastest = 1,
///
/// The environment depth is enabled and will be generated at the medium resolution.
///
Medium = 2,
///
/// The environment depth is enabled and will be generated at the best resolution.
///
Best = 3,
}
///
/// Extension for the .
///
public static class EnvironmentDepthModeExtension
{
///
/// Determine whether the environment depth mode is enabled.
///
/// The environment depth mode to check.
///
/// true if the environment depth mode is enabled. Otherwise, false.
///
public static bool Enabled(this EnvironmentDepthMode environmentDepthMode)
=> environmentDepthMode != EnvironmentDepthMode.Disabled;
}
}