Skip to content

Commit ae99c27

Browse files
authored
Fix XRSession/ended link (#322)
1 parent 1995a1d commit ae99c27

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

webxrlayers-1.bs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec: webxr; urlPrefix: https://www.w3.org/TR/webxr/
7272
type: dfn; text: native WebGL framebuffer resolution
7373
type: dfn; text: immersive session
7474
type: dfn; text: xr compatible
75-
type: dfn; text: ended
75+
type: attribute; text: ended; for: XRSession; url: xrsession-ended
7676
type: dfn; text: context
7777
type: dfn; text: XRFrame/active
7878
type: dfn; text: XRView/active
@@ -1005,7 +1005,7 @@ The <dfn dict-member for="XRLayerInit">space</dfn> attribute defines the spatial
10051005

10061006
The <dfn dict-member for="XRLayerInit">textureType</dfn> attribute defines the type the layer's textures. The [=XR Compositor=] MUST support:
10071007
- {{"texture"}}
1008-
1008+
10091009
For {{WebGL2RenderingContext}} these additional types are supported:
10101010
- {{"texture-array"}}
10111011

@@ -1170,7 +1170,7 @@ The <dfn constructor for="XRWebGLBinding">XRWebGLBinding(|session|, |context|)</
11701170
MUST perform the following steps when invoked:
11711171

11721172
1. Let |binding| be a [=new=] {{XRWebGLBinding}} in the [=relevant realm=] of |session|.
1173-
1. If |session|'s [=ended=] value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
1173+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
11741174
1. If |context| is lost, throw an {{InvalidStateError}} and abort these steps.
11751175
1. If |session| is not an [=immersive session=], throw an {{InvalidStateError}} and abort these steps.
11761176
1. If |context|'s [=XR compatible=] boolean is <code>false</code>, throw an {{InvalidStateError}} and abort these steps.
@@ -1449,7 +1449,7 @@ When this method is invoked, the user agent MUST run the following steps:
14491449
1. Let |session| be [=this=] [=XRWebGLBinding/session=].
14501450
1. Let |context| be [=this=] [=XRWebGLBinding/context=].
14511451
1. Let |layer| be a [=new=] {{XRProjectionLayer}} in the [=relevant realm=] of [=this=].
1452-
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
1452+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
14531453
1. If |context| is lost, throw {{InvalidStateError}} and abort these steps.
14541454
1. Run [=initialize a composition layer=] on |layer| with |session| and |context|.
14551455
1. Initialize |layer|'s [=XRCompositionLayer/isStatic=] to <code>false</code>.
@@ -1496,7 +1496,7 @@ When this method is invoked, the user agent MUST run the following steps:
14961496
1. Let |session| be [=this=] [=XRWebGLBinding/session=].
14971497
1. If |session| was not created with "[=feature descriptor/layers=]" enabled, throw a {{NotSupportedError}} and abort these steps.
14981498
1. Let |context| be [=this=] [=XRWebGLBinding/context=].
1499-
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
1499+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
15001500
1. If |context| is lost, throw {{InvalidStateError}} and abort these steps.
15011501
1. If |layout| is {{XRLayerLayout/"default"}}, throw {{TypeError}} and abort these steps.
15021502
1. Let |layer| be a [=new=] {{XRQuadLayer}} in the [=relevant realm=] of [=this=].
@@ -1521,7 +1521,7 @@ When this method is invoked, the user agent MUST run the following steps:
15211521
1. Let |session| be [=this=] [=XRWebGLBinding/session=].
15221522
1. If |session| was not created with "[=feature descriptor/layers=]" enabled, throw a {{NotSupportedError}} and abort these steps.
15231523
1. Let |context| be [=this=] [=XRWebGLBinding/context=].
1524-
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
1524+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
15251525
1. If |context| is lost, throw {{InvalidStateError}} and abort these steps.
15261526
1. If |layout| is {{XRLayerLayout/"default"}}, throw {{TypeError}} and abort these steps.
15271527
1. Let |layer| be a [=new=] {{XRCylinderLayer}} in the [=relevant realm=] of [=this=].
@@ -1546,7 +1546,7 @@ When this method is invoked, the user agent MUST run the following steps:
15461546
1. Let |session| be [=this=] [=XRWebGLBinding/session=].
15471547
1. If |session| was not created with "[=feature descriptor/layers=]" enabled, throw a {{NotSupportedError}} and abort these steps.
15481548
1. Let |context| be [=this=] [=XRWebGLBinding/context=].
1549-
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
1549+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
15501550
1. If |context| is lost, throw {{InvalidStateError}} and abort these steps.
15511551
1. If |layout| is {{XRLayerLayout/"default"}}, throw {{TypeError}} and abort these steps.
15521552
1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{TypeError}} and abort these steps.
@@ -1573,7 +1573,7 @@ When this method is invoked, the user agent MUST run the following steps:
15731573
1. Let |session| be [=this=] [=XRWebGLBinding/session=].
15741574
1. If |session| was not created with "[=feature descriptor/layers=]" enabled, throw a {{NotSupportedError}} and abort these steps.
15751575
1. Let |context| be [=this=] [=XRWebGLBinding/context=].
1576-
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
1576+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
15771577
1. If |context| is not a {{WebGL2RenderingContext}} context, throw {{InvalidStateError}} and abort these steps.
15781578
1. If |context| is lost, throw {{InvalidStateError}} and abort these steps.
15791579
1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{TypeError}} and abort these steps.
@@ -1816,7 +1816,7 @@ When this method is invoked on an {{XRWebGLBinding}} |binding|, it MUST run the
18161816
NOTE: The session should try to defer calls to {{XRWebGLBinding/getSubImage()}} and {{XRWebGLBinding/getViewSubImage()}} to the time that the experience starts drawing using WebGL.
18171817
Typically that would be after the game logic runs. On certain user agents having distinct stages for CPU and GPU dependent code allows them to dynamically optimize system resources.
18181818

1819-
The <dfn method for="XRWebGLBinding">foveateBoundTexture(GLenum |target|, float |fixed_foveation|)</dfn> applies foveation to the current bound texture or texture array.
1819+
The <dfn method for="XRWebGLBinding">foveateBoundTexture(GLenum |target|, float |fixed_foveation|)</dfn> applies foveation to the current bound texture or texture array.
18201820

18211821
When this method is invoked on an {{XRWebGLBinding}} |binding|, it MUST run the following steps:
18221822

@@ -1963,7 +1963,7 @@ ISSUE: add a better algorithm to describe the drawing.
19631963
The <dfn constructor for="XRMediaBinding">XRMediaBinding(XRSession |session|)</dfn> constructor
19641964
MUST perform the following steps when invoked:
19651965

1966-
1. If |session|'s [=ended=] value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
1966+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw an {{InvalidStateError}} and abort these steps.
19671967
1. If |session| is not an [=immersive session=], throw an {{InvalidStateError}} and abort these steps.
19681968
1. Let |binding| be a [=new=] {{XRMediaBinding}}in the [=relevant realm=] of |session|.
19691969
1. Initialize |binding|'s [=XRMediaBinding/session=] to |session|.
@@ -1988,7 +1988,7 @@ When this method is invoked, the user agent MUST run the following steps:
19881988

19891989
1. Let |session| be [=this=] [=XRMediaBinding/session=].
19901990
1. If |session| was not created with "[=feature descriptor/layers=]" enabled, throw a {{NotSupportedError}} and abort these steps.
1991-
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
1991+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
19921992
1. If |init|'s {{XRMediaLayerInit/layout}} is {{XRLayerLayout/"default"}}, throw a {{TypeError}} and abort these steps.
19931993
1. Let |layer| be a [=new=] {{XRQuadLayer}} in the [=relevant realm=] of [=this=].
19941994
1. Run [=initialize a composition layer=] on |layer| with |session|.
@@ -2011,7 +2011,7 @@ When this method is invoked, the user agent MUST run the following steps:
20112011

20122012
1. Let |session| be [=this=] [=XRMediaBinding/session=].
20132013
1. If |session| was not created with "[=feature descriptor/layers=]" enabled, throw a {{NotSupportedError}} and abort these steps.
2014-
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
2014+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
20152015
1. If |init|'s {{XRMediaLayerInit/layout}} is {{XRLayerLayout/"default"}}, throw a {{TypeError}} and abort these steps.
20162016
1. Let |layer| be a [=new=] {{XRCylinderLayer}} in the [=relevant realm=] of [=this=].
20172017
1. Run [=initialize a composition layer=] on |layer| with |session|.
@@ -2032,7 +2032,7 @@ When this method is invoked, the user agent MUST run the following steps:
20322032

20332033
1. Let |session| be [=this=] [=XRMediaBinding/session=].
20342034
1. If |session| was not created with "[=feature descriptor/layers=]" enabled, throw a {{NotSupportedError}} and abort these steps.
2035-
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
2035+
1. If |session|'s {{XRSession/ended}} value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
20362036
1. If |init|'s {{XRMediaLayerInit/layout}} is {{XRLayerLayout/"default"}}, throw a {{TypeError}} and abort these steps.
20372037
1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{InvalidStateError}} and abort these steps.
20382038
1. If |init|'s {{XRLayerInit/space}} has a [=XRReferenceSpace/type=] of {{XRReferenceSpaceType/"viewer"}}, throw {{InvalidStateError}} and abort these steps.

0 commit comments

Comments
 (0)