using System.ComponentModel;
namespace UnityEngine.XR.ARSubsystems
{
///
/// Represents the segmentation depth mode.
///
public enum HumanSegmentationDepthMode
{
///
/// The segmentation depth is disabled and will not be generated.
///
Disabled = 0,
///
/// The segmentation depth is enabled and will be generated with no additional image filtering.
///
Fastest = 1,
///
/// The segmentation depth is enabled and will be generated with additional image filtering.
///
Best = 2,
}
///
/// Extension for the .
///
public static class SegmentationDepthModeExtension
{
///
/// Determine whether the segmentation depth mode is enabled.
///
/// The segmentation depth mode to check.
///
/// true if the segmentation depth mode is enabled. Otherwise, false.
///
public static bool Enabled(this HumanSegmentationDepthMode segmentationDepthMode)
=> segmentationDepthMode != HumanSegmentationDepthMode.Disabled;
}
}