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
The <dfn attribute for="XRProjectionLayer">textureWidth</dfn> attribute returns the width in pixels of
452
+
the [=colorTextures=] textures of this layer.
453
+
454
+
The <dfn attribute for="XRProjectionLayer">textureHeight</dfn> attribute returns the height in pixels of
455
+
the [=colorTextures=] textures of this layer.
456
+
457
+
The <dfn attribute for="XRProjectionLayer">textureLayers</dfn> attribute returns the number of layers of
458
+
the [=colorTextures=] textures of this layer if the {{XRProjectionLayer}} was initialized with a
459
+
{{XRProjectionLayerInit/textureType}} of {{"texture-array"}}. Otherwise it will return <code>1</code>.
460
+
461
+
447
462
The <dfn attribute for="XRProjectionLayer">ignoreDepthValues</dfn> attribute, if <code>true</code>, indicates that the
448
463
[=XR Compositor=] MUST NOT make use of values in the depth buffer attachment when rendering. When the attribute
449
464
is <code>false</code> it indicates that the content of the depth buffer attachment will be used by the
@@ -1110,8 +1125,8 @@ To <dfn>allocate color textures for projection layers</dfn> using an {{XRProject
1110
1125
<dd> Return |array| and abort these steps.
1111
1126
</dl>
1112
1127
1. If the session’s [=view|views=] in the [=list of views=] don't all have the same [=recommended WebGL texture resolution=] excluding the [=secondary view|secondary views=], throw a {{NotSupportedError}} and abort these steps.
1113
-
1. If |layer|'s {{XRCompositionLayer/layout}} is {{XRLayerLayout/stereo-left-right}}, initialize |array| with 1 [=new=] instance of [=opaque texture}} in the [=relevant realm=] of |context| created as a |textureType| texture using |context| , |textureFormat|, |numViews| multiplied by |width| and |height|.
1114
-
1. If |layer|'s {{XRCompositionLayer/layout}} is {{XRLayerLayout/stereo-top-bottom}}, initialize |array| with 1 [=new=] instance of [=opaque texture}} in the [=relevant realm=] of |context| created as a |textureType| texture using |context| , |textureFormat|, |width| and |numViews| multiplied by |height|.
1128
+
1. If |layer|'s {{XRCompositionLayer/layout}} is {{XRLayerLayout/stereo-left-right}}, initialize |array| with 1 [=new=] instance of [=opaque texture=] in the [=relevant realm=] of |context| created as a |textureType| texture using |context| , |textureFormat|, |numViews| multiplied by |width| and |height|.
1129
+
1. If |layer|'s {{XRCompositionLayer/layout}} is {{XRLayerLayout/stereo-top-bottom}}, initialize |array| with 1 [=new=] instance of [=opaque texture=] in the [=relevant realm=] of |context| created as a |textureType| texture using |context| , |textureFormat|, |width| and |numViews| multiplied by |height|.
0 commit comments