|
7 | 7 | { |
8 | 8 | "name": "find-supported-configuration", |
9 | 9 | "href": "https://www.w3.org/TR/webxr-depth-sensing-1/#find-supported-configuration-combination", |
10 | | - "html": "In order to <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"find-supported-configuration-combination\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">find supported configuration combination</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> for depth sensing API given <var>usagePreference</var> and <var>dataFormatPreference</var> sequences, the user agent MUST run the following algorithm:", |
| 10 | + "html": "In order to <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"find-supported-configuration-combination\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">find supported configuration combination</dfn> for depth sensing API given <var>usagePreference</var> and <var>dataFormatPreference</var> sequences, the user agent MUST run the following algorithm:", |
11 | 11 | "rationale": ".algorithm", |
12 | 12 | "steps": [ |
13 | 13 | { |
|
86 | 86 | { |
87 | 87 | "name": "accessing-depth-buffer-members", |
88 | 88 | "href": "https://www.w3.org/TR/webxr-depth-sensing-1/#attempting-to-access-the-depth-buffer", |
89 | | - "html": "When <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"attempting-to-access-the-depth-buffer\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">attempting to access the depth buffer</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> of <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#xrdepthinformation\" id=\"ref-for-xrdepthinformation③\">XRDepthInformation</a></code> or any interface that inherits from it, the user agent MUST run the following steps:", |
| 89 | + "html": "When <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"attempting-to-access-the-depth-buffer\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">attempting to access the depth buffer</dfn> of <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#xrdepthinformation\" id=\"ref-for-xrdepthinformation③\">XRDepthInformation</a></code> or any interface that inherits from it, the user agent MUST run the following steps:", |
90 | 90 | "rationale": ".algorithm", |
91 | 91 | "steps": [ |
92 | 92 | { |
|
112 | 112 | { |
113 | 113 | "name": "obtain-depth-at-coordinates", |
114 | 114 | "href": "https://www.w3.org/TR/webxr-depth-sensing-1/#obtain-depth-at-coordinates", |
115 | | - "html": "When <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#dom-xrcpudepthinformation-getdepthinmeters\" id=\"ref-for-dom-xrcpudepthinformation-getdepthinmeters②\">getDepthInMeters(x, y)</a></code> method is invoked on an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#xrcpudepthinformation\" id=\"ref-for-xrcpudepthinformation①\">XRCPUDepthInformation</a></code> <var>depthInformation</var> with <var>x</var>, <var>y</var>, the user agent MUST <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"obtain-depth-at-coordinates\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">obtain depth at coordinates</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> by running the following steps:", |
| 115 | + "html": "When <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#dom-xrcpudepthinformation-getdepthinmeters\" id=\"ref-for-dom-xrcpudepthinformation-getdepthinmeters②\">getDepthInMeters(x, y)</a></code> method is invoked on an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#xrcpudepthinformation\" id=\"ref-for-xrcpudepthinformation①\">XRCPUDepthInformation</a></code> <var>depthInformation</var> with <var>x</var>, <var>y</var>, the user agent MUST <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"obtain-depth-at-coordinates\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">obtain depth at coordinates</dfn> by running the following steps:", |
116 | 116 | "rationale": ".algorithm", |
117 | 117 | "steps": [ |
118 | 118 | { |
|
159 | 159 | { |
160 | 160 | "name": "obtain-depth-information", |
161 | 161 | "href": "https://www.w3.org/TR/webxr-depth-sensing-1/#obtain-cpu-depth-information", |
162 | | - "html": "When <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#dom-xrframe-getdepthinformation\" id=\"ref-for-dom-xrframe-getdepthinformation①\">getDepthInformation(view)</a></code> method is invoked on an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrframe-interface\" id=\"ref-for-xrframe-interface②\">XRFrame</a></code> <var>frame</var> with an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrview\" id=\"ref-for-xrview②\">XRView</a></code> <var>view</var>, the user agent MUST <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"obtain-cpu-depth-information\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">obtain CPU depth information</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> by running the following steps:", |
| 162 | + "html": "When <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#dom-xrframe-getdepthinformation\" id=\"ref-for-dom-xrframe-getdepthinformation①\">getDepthInformation(view)</a></code> method is invoked on an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrframe-interface\" id=\"ref-for-xrframe-interface②\">XRFrame</a></code> <var>frame</var> with an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrview\" id=\"ref-for-xrview②\">XRView</a></code> <var>view</var>, the user agent MUST <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"obtain-cpu-depth-information\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">obtain CPU depth information</dfn> by running the following steps:", |
163 | 163 | "rationale": ".algorithm", |
164 | 164 | "steps": [ |
165 | 165 | { |
166 | 166 | "html": "<p>Let <var>session</var> be <var>frame</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#dom-xrframe-session\" id=\"ref-for-dom-xrframe-session①\">session</a></code>.</p>" |
167 | 167 | }, |
168 | 168 | { |
169 | | - "html": "<p>If <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#depth-sensing\" id=\"ref-for-depth-sensing①\">depth-sensing</a> feature descriptor is not <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-contain\" id=\"ref-for-list-contain\">contained</a> in the <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrsession-xr-device\" id=\"ref-for-xrsession-xr-device\">XR device</a>'s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#dom-xrsession-enabledfeatures\" id=\"ref-for-dom-xrsession-enabledfeatures\">list of enabled features</a> for <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrsession-mode\" id=\"ref-for-xrsession-mode\">mode</a>, <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\" id=\"ref-for-dfn-throw②\">throw</a> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#notsupportederror\" id=\"ref-for-notsupportederror②\">NotSupportedError</a></code> and abort these steps.</p>" |
| 169 | + "html": "<p>If <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#depth-sensing\" id=\"ref-for-depth-sensing①\">depth-sensing</a> feature descriptor is not <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-contain\" id=\"ref-for-list-contain\">contained</a> in the <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrsession-xr-device\" id=\"ref-for-xrsession-xr-device\">XR device</a>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#dom-xrsession-enabledfeatures\" id=\"ref-for-dom-xrsession-enabledfeatures\">list of enabled features</a> for <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrsession-mode\" id=\"ref-for-xrsession-mode\">mode</a>, <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\" id=\"ref-for-dfn-throw②\">throw</a> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#notsupportederror\" id=\"ref-for-notsupportederror②\">NotSupportedError</a></code> and abort these steps.</p>" |
170 | 170 | }, |
171 | 171 | { |
172 | 172 | "html": "<p>If <var>frame</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrframe-active\" id=\"ref-for-xrframe-active①\">active</a> boolean is <code>false</code>, throw an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#invalidstateerror\" id=\"ref-for-invalidstateerror④\">InvalidStateError</a></code> and abort these steps.</p>" |
|
191 | 191 | { |
192 | 192 | "name": "create-cpu-depth-information", |
193 | 193 | "href": "https://www.w3.org/TR/webxr-depth-sensing-1/#create-a-cpu-depth-information-instance", |
194 | | - "html": "In order to <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"create-a-cpu-depth-information-instance\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">create a CPU depth information instance</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> given <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrframe-interface\" id=\"ref-for-xrframe-interface③\">XRFrame</a></code> <var>frame</var> and <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrview\" id=\"ref-for-xrview③\">XRView</a></code> <var>view</var>, the user agent MUST run the following steps:", |
| 194 | + "html": "In order to <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"create-a-cpu-depth-information-instance\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">create a CPU depth information instance</dfn> given <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrframe-interface\" id=\"ref-for-xrframe-interface③\">XRFrame</a></code> <var>frame</var> and <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrview\" id=\"ref-for-xrview③\">XRView</a></code> <var>view</var>, the user agent MUST run the following steps:", |
195 | 195 | "rationale": ".algorithm", |
196 | 196 | "steps": [ |
197 | 197 | { |
|
241 | 241 | { |
242 | 242 | "name": "obtain-webgl-depth-information", |
243 | 243 | "href": "https://www.w3.org/TR/webxr-depth-sensing-1/#obtain-webgl-depth-information", |
244 | | - "html": "When <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#dom-xrwebglbinding-getdepthinformation\" id=\"ref-for-dom-xrwebglbinding-getdepthinformation\">getDepthInformation(view)</a></code> method is invoked on a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxrlayers-1/#xrwebglbinding\" id=\"ref-for-xrwebglbinding②\">XRWebGLBinding</a></code> <var>binding</var> with an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrview\" id=\"ref-for-xrview⑤\">XRView</a></code> <var>view</var>, the user agent MUST <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"obtain-webgl-depth-information\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">obtain WebGL depth information</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> by running the following steps:", |
| 244 | + "html": "When <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#dom-xrwebglbinding-getdepthinformation\" id=\"ref-for-dom-xrwebglbinding-getdepthinformation\">getDepthInformation(view)</a></code> method is invoked on a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxrlayers-1/#xrwebglbinding\" id=\"ref-for-xrwebglbinding②\">XRWebGLBinding</a></code> <var>binding</var> with an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrview\" id=\"ref-for-xrview⑤\">XRView</a></code> <var>view</var>, the user agent MUST <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"obtain-webgl-depth-information\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">obtain WebGL depth information</dfn> by running the following steps:", |
245 | 245 | "rationale": ".algorithm", |
246 | 246 | "steps": [ |
247 | 247 | { |
|
254 | 254 | "html": "<p>If <var>session</var> does not match <var>frame</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#dom-xrframe-session\" id=\"ref-for-dom-xrframe-session③\">session</a></code>, throw an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#invalidstateerror\" id=\"ref-for-invalidstateerror⑧\">InvalidStateError</a></code> and abort these steps.</p>" |
255 | 255 | }, |
256 | 256 | { |
257 | | - "html": "<p>If <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#depth-sensing\" id=\"ref-for-depth-sensing②\">depth-sensing</a> feature descriptor is not <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-contain\" id=\"ref-for-list-contain①\">contained</a> in the <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrsession-xr-device\" id=\"ref-for-xrsession-xr-device②\">XR device</a>'s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#dom-xrsession-enabledfeatures\" id=\"ref-for-dom-xrsession-enabledfeatures①\">list of enabled features</a> for <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrsession-mode\" id=\"ref-for-xrsession-mode①\">mode</a>, <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\" id=\"ref-for-dfn-throw④\">throw</a> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#notsupportederror\" id=\"ref-for-notsupportederror③\">NotSupportedError</a></code> and abort these steps.</p>" |
| 257 | + "html": "<p>If <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#depth-sensing\" id=\"ref-for-depth-sensing②\">depth-sensing</a> feature descriptor is not <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-contain\" id=\"ref-for-list-contain①\">contained</a> in the <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrsession-xr-device\" id=\"ref-for-xrsession-xr-device②\">XR device</a>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#dom-xrsession-enabledfeatures\" id=\"ref-for-dom-xrsession-enabledfeatures①\">list of enabled features</a> for <var>session</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/webxr/#xrsession-mode\" id=\"ref-for-xrsession-mode①\">mode</a>, <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\" id=\"ref-for-dfn-throw④\">throw</a> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#notsupportederror\" id=\"ref-for-notsupportederror③\">NotSupportedError</a></code> and abort these steps.</p>" |
258 | 258 | }, |
259 | 259 | { |
260 | 260 | "html": "<p>If the <var>session</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#dom-xrsession-depthusage\" id=\"ref-for-dom-xrsession-depthusage④\">depthUsage</a></code> is not <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr-depth-sensing-1/#dom-xrdepthusage-gpu-optimized\" id=\"ref-for-dom-xrdepthusage-gpu-optimized①\">\"gpu-optimized\"</a></code>, throw an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#invalidstateerror\" id=\"ref-for-invalidstateerror⑨\">InvalidStateError</a></code> and abort these steps.</p>" |
|
276 | 276 | { |
277 | 277 | "name": "create-webgl-depth-information", |
278 | 278 | "href": "https://www.w3.org/TR/webxr-depth-sensing-1/#create-a-webgl-depth-information-instance", |
279 | | - "html": "In order to <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"create-a-webgl-depth-information-instance\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">create a WebGL depth information instance</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> given <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrframe-interface\" id=\"ref-for-xrframe-interface④\">XRFrame</a></code> <var>frame</var> and <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrview\" id=\"ref-for-xrview⑥\">XRView</a></code> <var>view</var>, the user agent MUST run the following steps:", |
| 279 | + "html": "In order to <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"create-a-webgl-depth-information-instance\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">create a WebGL depth information instance</dfn> given <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrframe-interface\" id=\"ref-for-xrframe-interface④\">XRFrame</a></code> <var>frame</var> and <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/webxr/#xrview\" id=\"ref-for-xrview⑥\">XRView</a></code> <var>view</var>, the user agent MUST run the following steps:", |
280 | 280 | "rationale": ".algorithm", |
281 | 281 | "steps": [ |
282 | 282 | { |
|
0 commit comments