Skip to content

Commit 9b2c0af

Browse files
committed
Address review comment
1 parent 8a59e9c commit 9b2c0af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,7 @@ enum XREye {
15741574

15751575
[SecureContext, Exposed=Window] interface XRView {
15761576
readonly attribute XREye eye;
1577+
readonly attribute unsigned long index;
15771578
readonly attribute double? recommendedViewportScale;
15781579

15791580
undefined requestViewportScale(double? scale);
@@ -1586,6 +1587,8 @@ The {{XRViewGeometry/transform}} is given in it's [=view/reference space=].
15861587

15871588
The <dfn attribute for="XRView">eye</dfn> attribute describes the [=view/eye=] of the underlying [=view=]. This attribute's primary purpose is to ensure that pre-rendered stereo content can present the correct portion of the content to the correct eye.
15881589

1590+
The <dfn attribute for="XRView">index</dfn> attribute describes a unique offet of this {{XRView}}. This MUST be used by the experience to identify the {{XRView}} for each {{XREye}}.
1591+
15891592
The optional <dfn attribute for="XRView">recommendedViewportScale</dfn> attribute contains a UA-recommended viewport scale value that the application can use for a {{XRView/requestViewportScale()}} call to configure dynamic viewport scaling. It is `null` if the system does not implement a heuristic or method for determining a recommended scale. If not null, the value MUST be a numeric value greater than 0.0 and less than or equal to 1.0, and MUST be [=quantization|quantized=] to avoid providing detailed performance or GPU utilization data.
15901593

15911594
Note: It is suggested to quantize the recommended viewport scale by rounding it to the nearest value from a short list of possible scale values, and using hysteresis to avoid instant changes when close to a boundary value. (This also helps avoid rapidly oscillating scale values which can be visually distracting or uncomfortable.)
@@ -2602,6 +2605,7 @@ interface XRVisibilityMaskChangeEvent : Event {
26022605
constructor(DOMString type, XRVisibilityMaskChangeEventInit eventInitDict);
26032606
[SameObject] readonly attribute XRSession session;
26042607
readonly attribute XREye eye;
2608+
readonly attribute unsigned long index;
26052609
[SameObject] readonly attribute Float32Array vertices;
26062610
[SameObject] readonly attribute Uint32Array indices;
26072611
};
@@ -2618,6 +2622,8 @@ The <dfn attribute for="XRVisibilityMaskChangeEvent">session</dfn> attribute ind
26182622

26192623
The <dfn attribute for="XRVisibilityMaskChangeEvent">eye</dfn> attribute indicates which {{XREye}} the mask applies to.
26202624

2625+
The <dfn attribute for="XRVisibilityMaskChangeEvent">index</dfn> attribute indicates which {{XRView/index}} the mask applies to.
2626+
26212627
The <dfn attribute for="XRVisibilityMaskChangeEvent">vertices</dfn> attribute is a [=/list=] of <code>X</code>, <code>Y</code> coordinates. The experience MUST assume that the <code>Z</code> coordinate is <code>-1</code>. Each <code>X</code>, <code>Y</code>, <code>Z</code> coordinate describes a vertex.
26222628
If this array is empty, the whole region of the {{XRView}} SHOULD be drawn.
26232629

0 commit comments

Comments
 (0)