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
Copy file name to clipboardExpand all lines: webxrlayers-1.bs
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -398,9 +398,9 @@ the user agent MUST run the following steps:
398
398
399
399
{{destroy()}} will delete the underlying attachments. If there are no attachments, this function does nothing.
400
400
401
-
<div class="algorithm" data-algorithm="intialization of a composition layer">
401
+
<div class="algorithm" data-algorithm="initialization of a composition layer">
402
402
403
-
To <dfn>intialize a composition layer</dfn> with a {{XRSession}} |session| and an optional instance of a {{WebGLRenderingContext}}
403
+
To <dfn>initialize a composition layer</dfn> with a {{XRSession}} |session| and an optional instance of a {{WebGLRenderingContext}}
404
404
or a {{WebGL2RenderingContext}} |context|, the user agent MUST run the following steps:
405
405
1. Set [=this=][=XRCompositionLayer/session=] to |session|.
406
406
1. If |context| is defined, set [=this=][=XRCompositionLayer/context=] to |context|.
@@ -1451,7 +1451,7 @@ When this method is invoked, the user agent MUST run the following steps:
1451
1451
1. Let |layer| be a [=new=]{{XRProjectionLayer}} in the [=relevant realm=] of [=this=].
1452
1452
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
1453
1453
1. If |context| is lost, throw {{InvalidStateError}} and abort these steps.
1454
-
1. Run [=intialize a composition layer=] on |layer| with |session| and |context|.
1454
+
1. Run [=initialize a composition layer=] on |layer| with |session| and |context|.
1455
1455
1. Initialize |layer|'s [=XRCompositionLayer/isStatic=] to <code>false</code>.
1456
1456
1. Initialize |layer|'s {{XRProjectionLayer/ignoreDepthValues}} as follows:
1457
1457
<dl class="switch">
@@ -1500,7 +1500,7 @@ When this method is invoked, the user agent MUST run the following steps:
1500
1500
1. If |context| is lost, throw {{InvalidStateError}} and abort these steps.
1501
1501
1. If |layout| is {{XRLayerLayout/"default"}}, throw {{TypeError}} and abort these steps.
1502
1502
1. Let |layer| be a [=new=]{{XRQuadLayer}} in the [=relevant realm=] of [=this=].
1503
-
1. Run [=intialize a composition layer=] on |layer| with |session| and |context|.
1503
+
1. Run [=initialize a composition layer=] on |layer| with |session| and |context|.
1504
1504
1. Run [=initialize a quad layer=] with |layer| and |init|.
1505
1505
1. let |layout| be the result of [=determine the layout attribute|determining the layout attribute=] with |init|'s {{XRLayerInit/textureType}}, |context| and |init|'s {{XRLayerInit/layout}}.
1506
1506
1. Initialize |layer|'s {{XRCompositionLayer/layout}} to |layout|.
@@ -1525,7 +1525,7 @@ When this method is invoked, the user agent MUST run the following steps:
1525
1525
1. If |context| is lost, throw {{InvalidStateError}} and abort these steps.
1526
1526
1. If |layout| is {{XRLayerLayout/"default"}}, throw {{TypeError}} and abort these steps.
1527
1527
1. Let |layer| be a [=new=]{{XRCylinderLayer}} in the [=relevant realm=] of [=this=].
1528
-
1. Run [=intialize a composition layer=] on |layer| with |session| and |context|.
1528
+
1. Run [=initialize a composition layer=] on |layer| with |session| and |context|.
1529
1529
1. Run [=initialize a cylinder layer=] with |layer| and |init|.
1530
1530
1. let |layout| be the result of [=determine the layout attribute|determining the layout attribute=] with |init|'s {{XRLayerInit/textureType}}, |context| and |init|'s {{XRLayerInit/layout}}.
1531
1531
1. Initialize |layer|'s {{XRCompositionLayer/layout}} to |layout|.
@@ -1552,7 +1552,7 @@ When this method is invoked, the user agent MUST run the following steps:
1552
1552
1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{TypeError}} and abort these steps.
1553
1553
1. If |init|'s {{XRLayerInit/space}} has a [=XRReferenceSpace/type=] of {{XRReferenceSpaceType/"viewer"}}, throw {{TypeError}} and abort these steps.
1554
1554
1. Let |layer| be a [=new=]{{XREquirectLayer}} in the [=relevant realm=] of [=this=].
1555
-
1. Run [=intialize a composition layer=] on |layer| with |session| and |context|.
1555
+
1. Run [=initialize a composition layer=] on |layer| with |session| and |context|.
1556
1556
1. Run [=initialize a equirect layer=] with |layer| and |init|.
1557
1557
1. let |layout| be the result of [=determine the layout attribute|determining the layout attribute=] with |init|'s {{XRLayerInit/textureType}}, |context| and |init|'s {{XRLayerInit/layout}}.
1558
1558
1. Initialize |layer|'s {{XRCompositionLayer/layout}} to |layout|.
@@ -1579,7 +1579,7 @@ When this method is invoked, the user agent MUST run the following steps:
1579
1579
1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{TypeError}} and abort these steps.
1580
1580
1. If |init|'s {{XRLayerInit/space}} has a [=XRReferenceSpace/type=] of {{XRReferenceSpaceType/"viewer"}}, throw {{TypeError}} and abort these steps.
1581
1581
1. Let |layer| be a [=new=]{{XRCubeLayer}} in the [=relevant realm=] of [=this=].
1582
-
1. Run [=intialize a composition layer=] on |layer| with |session| and |context|.
1582
+
1. Run [=initialize a composition layer=] on |layer| with |session| and |context|.
1583
1583
1. Let |layer|'s {{XRCubeLayer/space}} be the |init|'s {{XRLayerInit/space}}.
1584
1584
1. Initialize |layer|'s [=XRCompositionLayer/isStatic=] to |init|'s {{XRLayerInit/isStatic}}
1585
1585
1. Initialize |layer|'s {{XRCubeLayer/orientation}} as follows:
@@ -1991,7 +1991,7 @@ When this method is invoked, the user agent MUST run the following steps:
1991
1991
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
1992
1992
1. If |init|'s {{XRMediaLayerInit/layout}} is {{XRLayerLayout/"default"}}, throw a {{TypeError}} and abort these steps.
1993
1993
1. Let |layer| be a [=new=]{{XRQuadLayer}} in the [=relevant realm=] of [=this=].
1994
-
1. Run [=intialize a composition layer=] on |layer| with |session|.
1994
+
1. Run [=initialize a composition layer=] on |layer| with |session|.
1995
1995
1. Initialize |layer|'s [=XRCompositionLayer/media=] to |video|.
1996
1996
1. Initialize |layer|'s {{XRCompositionLayer/needsRedraw}} to <code>false</code>.
1997
1997
1. Let |aspectRatio| be the result of [=calculate the aspect ratio=] with |video| and |init|'s {{XRMediaLayerInit/layout}}.
@@ -2014,7 +2014,7 @@ When this method is invoked, the user agent MUST run the following steps:
2014
2014
1. If |session|'s [=ended=] value is <code>true</code>, throw {{InvalidStateError}} and abort these steps.
2015
2015
1. If |init|'s {{XRMediaLayerInit/layout}} is {{XRLayerLayout/"default"}}, throw a {{TypeError}} and abort these steps.
2016
2016
1. Let |layer| be a [=new=]{{XRCylinderLayer}} in the [=relevant realm=] of [=this=].
2017
-
1. Run [=intialize a composition layer=] on |layer| with |session|.
2017
+
1. Run [=initialize a composition layer=] on |layer| with |session|.
2018
2018
1. Initialize |layer|'s [=XRCompositionLayer/media=] to |video|.
2019
2019
1. Initialize |layer|'s {{XRCompositionLayer/needsRedraw}} to <code>false</code>.
2020
2020
1. Let |aspectRatio| be the result of [=calculate the aspect ratio=] with |video| and |init|'s {{XRMediaLayerInit/layout}}.
@@ -2037,7 +2037,7 @@ When this method is invoked, the user agent MUST run the following steps:
2037
2037
1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{InvalidStateError}} and abort these steps.
2038
2038
1. If |init|'s {{XRLayerInit/space}} has a [=XRReferenceSpace/type=] of {{XRReferenceSpaceType/"viewer"}}, throw {{InvalidStateError}} and abort these steps.
2039
2039
1. Let |layer| be a [=new=]{{XREquirectLayer}} in the [=relevant realm=] of [=this=].
2040
-
1. Run [=intialize a composition layer=] on |layer| with |session|.
2040
+
1. Run [=initialize a composition layer=] on |layer| with |session|.
2041
2041
1. Initialize |layer|'s [=XRCompositionLayer/media=] to |video|.
2042
2042
1. Initialize |layer|'s {{XRCompositionLayer/needsRedraw}} to <code>false</code>.
2043
2043
1. Run [=initialize a equirect layer=] with |layer| and |init|.
0 commit comments