public void CopyTo(XRGraphicsConfig targetConfig)
 {
     targetConfig.renderScale        = this.renderScale;
     targetConfig.viewportScale      = this.viewportScale;
     targetConfig.useOcclusionMesh   = this.useOcclusionMesh;
     targetConfig.occlusionMeshScale = this.occlusionMeshScale;
 }
        public static XRGraphicsConfig GetActualXRSettings()
        {
            XRGraphicsConfig getXRSettings = new XRGraphicsConfig();

            if (!enabled)
            {
                return(getXRSettings);
            }

            getXRSettings.renderScale        = XRSettings.eyeTextureResolutionScale;
            getXRSettings.viewportScale      = XRSettings.renderViewportScale;
            getXRSettings.useOcclusionMesh   = XRSettings.useOcclusionMesh;
            getXRSettings.occlusionMaskScale = XRSettings.occlusionMaskScale;
            return(getXRSettings);
        }
        public static XRGraphicsConfig GetActualXRSettings()
        {
            XRGraphicsConfig getXRSettings = new XRGraphicsConfig();

            if (!enabled)
            {
                Assert.IsFalse(enabled);
            }

            getXRSettings.renderScale        = XRSettings.eyeTextureResolutionScale;
            getXRSettings.viewportScale      = XRSettings.renderViewportScale;
            getXRSettings.useOcclusionMesh   = XRSettings.useOcclusionMesh;
            getXRSettings.occlusionMaskScale = XRSettings.occlusionMaskScale;
            getXRSettings.showDeviceView     = XRSettings.showDeviceView;
            getXRSettings.gameViewRenderMode = XRSettings.gameViewRenderMode;
            return(getXRSettings);
        }