Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec: WebXR Device API - Level 1; urlPrefix: https://www.w3.org/TR/webxr/#
type: interface; text: XRSession; url: xrsession-interface
for: XRSession;
type: dfn; text: animation frame; url: xrsession-animation-frame
type: dfn; text: ended; url: ended
type: attribute; text: ended; url: xrsession-ended
type: dfn; text: mode; url: xrsession-mode
type: dfn; text: XR device; url: xrsession-xr-device
type: interface; text: XRViewGeometry; url: xrviewgeometry-mixin
Expand Down Expand Up @@ -340,24 +340,28 @@ The {{XRSession/depthActive}} returns the current [=depth sensing active state=]

When {{XRSession/resumeDepthSensing()}} is invoked on an {{XRSession}} |session|, the User Agent MUST run the following steps:

1. If |session|'s [=XRSession/ended=] value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
1. Let |frame| be |session|'s [=XRSession/animation frame=].
1. If |frame|'s [=XRFrame/active=] boolean is <code>false</code>, throw an {{InvalidStateError}} and abort these steps.
1. If [=depth-sensing=] feature descriptor is not [=list/contain|contained=] in the |session|'s [=XRSession/XR device=]'s [=XR device/list of enabled features=] for |session|'s [=XRSession/mode=], [=exception/throw=] a {{NotSupportedError}} and abort these steps.
1. If [=depth sensing active state=] is <code>true</code>, abort these steps.
1. Set [=depth sensing active state=] to <code>true</code>.

</div>

<div class="algorithm" data-algorithm="stop-depth-sensing">
When {{XRSession/pauseDepthSensing()}} is invoked on an {{XRSession}} |session|, the User Agent MUST run the following steps:


1. If |session|'s [=XRSession/ended=] value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
1. Let |frame| be |session|'s [=XRSession/animation frame=].
1. If |frame|'s [=XRFrame/active=] boolean is <code>false</code>, throw an {{InvalidStateError}} and abort these steps.
1. If [=depth-sensing=] feature descriptor is not [=list/contain|contained=] in the |session|'s [=XRSession/XR device=]'s [=XR device/list of enabled features=] for |session|'s [=XRSession/mode=], [=exception/throw=] a {{NotSupportedError}} and abort these steps.
1. If [=depth sensing active state=] is <code>false</code>, abort these steps.
1. Set [=depth sensing active state=] to <code>false</code>.

</div>

Obtaining depth data {#obtaining-data}
====================

Expand Down