using System; namespace UnityEngine.XR.ARSubsystems { /// /// Defines the rendering modes for the Camera Background. /// /// /// The platform provider is the source of truth for when the background should be rendered and /// can elect to only support certain render passes and not others. /// public enum XRCameraBackgroundRenderingMode : byte { /// /// Camera background rendering is disabled or unsupported. /// None = 0, /// /// Render camera background prior to rendering opaques. /// BeforeOpaques, /// /// Render camera background after rendering opaques. /// AfterOpaques, } /// /// Defines the supported rendering modes for the Camera Background. /// /// /// The platform provider is the source of truth for when the background should be rendered and /// can elect to only support certain render passes and not others. /// [Flags] public enum XRSupportedCameraBackgroundRenderingMode : byte { /// /// Represents when rendering the camera background is unsupported. /// None = 0x0, /// /// Request the camera background be rendered prior to rendering opaques. /// BeforeOpaques = 0x1, /// /// Request the camera background be rendered after rendering opaques. /// AfterOpaques = 0x1 << 1, /// /// Allow the platform provider to determine the rendering mode for the camera background. /// Any = BeforeOpaques | AfterOpaques, } }