You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the <dfn method for="XR">requestSession(|mode|, |options|)</dfn> method is invoked, the user agent MUST run the following steps:
303
+
The <dfn method for="XR">requestSession(|mode|, |options|)</dfn> method attempts to initialize an {{XRSession}} for the given |mode| if possible, entering immersive mode if necessary.
304
+
305
+
When this method is invoked, the user agent MUST run the following steps:
303
306
304
307
1. Let |promise| be [=a new Promise=].
305
308
1. Let |immersive| be <code>true</code> if |mode| is {{XRSessionMode/"immersive-vr"}}, and <code>false</code> otherwise.
@@ -597,9 +600,9 @@ Each {{XRSession}} has a <dfn>minimum near clip plane</dfn> and a <dfn>maximum f
The {{XRSession/updateRenderState()}} method queues an update to the [=active render state=] to be applied on the next frame. Unset fields of the {{XRRenderStateInit}} passed to this method will not be changed.
603
+
The <dfn method for="XRSession">updateRenderState(|newState|)</dfn> method queues an update to the [=active render state=] to be applied on the next frame. Unset fields of the {{XRRenderStateInit}} |newState| passed to this method will not be changed.
601
604
602
-
When the <dfn method for="XRSession">updateRenderState(|newState|)</dfn> method is invoked, the user agent MUST run the following steps:
605
+
When this method is invoked, the user agent MUST run the following steps:
603
606
604
607
1. Let |session| be the target {{XRSession}}.
605
608
1. If |session|'s [=ended=] value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
@@ -641,8 +644,9 @@ When requested, the {{XRSession}} MUST <dfn>apply the pending render state</dfn>
When the <dfn method for="XRSession">requestAnimationFrame(|callback|)</dfn> method is invoked, the user agent MUST run the following steps:
820
+
The <dfn method for="XRSession">requestAnimationFrame(|callback|)</dfn> method queues up |callback| for being run the next time the user agent wishes to run an animation frame for the device.
821
+
822
+
When this method is invoked, the user agent MUST run the following steps:
817
823
818
824
1. Let |session| be the target {{XRSession}} object.
819
825
1. Increment |session|'s [=animation frame callback identifier=] by one.
@@ -824,7 +830,9 @@ When the <dfn method for="XRSession">requestAnimationFrame(|callback|)</dfn> met
When the <dfn method for="XRSession">cancelAnimationFrame(|handle|)</dfn> method is invoked, the user agent MUST run the following steps:
833
+
The <dfn method for="XRSession">cancelAnimationFrame(|handle|)</dfn> method cancels an existing animation frame callback given its [=animation frame callback identifier=] |handle|.
834
+
835
+
When this method is invoked, the user agent MUST run the following steps:
828
836
829
837
1. Let |session| be the target {{XRSession}} object.
830
838
1. Find the entry in |session|'s [=list of animation frame callbacks=] that is associated with the value |handle|.
@@ -929,7 +937,9 @@ The <dfn attribute for="XRFrame">session</dfn> attribute returns the {{XRSession
When the <dfn method for="XRFrame">getViewerPose(|referenceSpace|)</dfn> method is invoked, the user agent MUST run the following steps:
940
+
The <dfn method for="XRFrame">getViewerPose(|referenceSpace|)</dfn> method provides the pose of the [=viewer=] relative to |referenceSpace| as an {{XRViewerPose}}, at the time represented by the {{XRFrame}}.
941
+
942
+
When this method is invoked, the user agent MUST run the following steps:
933
943
934
944
1. Let |frame| be the target {{XRFrame}}
935
945
1. Let |session| be |frame|'s {{XRFrame/session}} object.
@@ -953,7 +963,9 @@ When the <dfn method for="XRFrame">getViewerPose(|referenceSpace|)</dfn> method
953
963
954
964
<div class="algorithm" data-algorithm="get-pose">
955
965
956
-
When the <dfn method for="XRFrame">getPose(|space|, |baseSpace|)</dfn> method is invoked, the user agent MUST run the following steps:
966
+
The <dfn method for="XRFrame">getPose(|space|, |baseSpace|)</dfn> method provides the pose of |space| relative to |baseSpace| as an {{XRPose}}, at the time represented by the {{XRFrame}}.
967
+
968
+
When this method is invoked, the user agent MUST run the following steps:
957
969
958
970
1. Let |frame| be the target {{XRFrame}}
959
971
1. Let |pose| be a new {{XRPose}} object.
@@ -1770,8 +1782,9 @@ function onXRSessionStarted(xrSession) {
1770
1782
To set the [=XR compatible=] boolean after the context has been created, the {{makeXRCompatible()}} method is used.
The <dfn method for="WebGLRenderingContextBase">makeXRCompatible()</dfn> method ensures the {{WebGLRenderingContextBase}} is running on a [=compatible graphics adapter=] for the [=XR/immersive XR device=].
1773
1786
1774
-
When the <dfn method for="WebGLRenderingContextBase">makeXRCompatible()</dfn> method is invoked, the user agent MUST run the following steps:
1787
+
When this method is invoked, the user agent MUST run the following steps:
0 commit comments