#if ENABLE_CLOUD_SERVICES_ANALYTICS || UNITY_2023_2_OR_NEWER
using System;
using UnityEngine;
namespace UnityEditor.XR.Interaction.Toolkit.Analytics
{
///
/// Oculus package project settings data for the analytics payload.
///
[Serializable]
struct OculusProjectSettingsData
{
///
/// Whether Oculus is enabled in the XR Plug-in Management and thus whether this data is valid to use.
///
[SerializeField]
public bool valid;
///
/// The stereo rendering mode selected for desktop-based Oculus platforms.
/// Unity.XR.Oculus.OculusSettings.StereoRenderingModeDesktop enum as an int.
/// 0 = MultiPass
/// 1 = SinglePassInstanced
///
[SerializeField]
public int renderModeDesktop;
///
/// The stereo rendering mode selected for Android-based Oculus platforms.
/// Unity.XR.Oculus.OculusSettings.StereoRenderingModeAndroid enum as an int.
/// 0 = MultiPass
/// 2 = Multiview
///
[SerializeField]
public int renderModeAndroid;
///
/// The selected foveated rendering method used when foveation is enabled.
/// Unity.XR.Oculus.OculusSettings.FoveationMethod enum as an int.
/// 0 = FixedFoveatedRendering
/// 1 = EyeTrackedFoveatedRendering
/// 2 = FixedFoveatedRenderingUsingUnityAPIForURP
/// 3 = EyeTrackedFoveatedRenderingUsingUnityAPIForURP
/// -1 = unable to obtain value since Oculus package version does not meet minimum version requirement for field
///
[SerializeField]
public int foveationMethod;
}
}
#endif