Skip to content

Commit 74e2662

Browse files
committed
Added support for ignoreDepthValues to XRWebGLBinding
1 parent 3aa5fc1 commit 74e2662

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

webxrlayers-1.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ The {{XRWebGLBinding}} object is used to create layers that have a GPU backend.
10401040
constructor(XRSession session, XRWebGLRenderingContext context);
10411041

10421042
readonly attribute double nativeProjectionScaleFactor;
1043+
readonly attribute boolean usesDepthValues;
10431044

10441045
XRProjectionLayer createProjectionLayer(optional XRProjectionLayerInit init = {});
10451046
XRQuadLayer createQuadLayer(optional XRQuadLayerInit init = {});
@@ -1087,11 +1088,16 @@ MUST perform the following steps when invoked:
10871088

10881089
</div>
10891090

1090-
The {{nativeProjectionScaleFactor}} function returns the value that the |session|'s [=recommended WebGL framebuffer resolution=]
1091+
The <dfn attribute for="XRWebGLBinding">nativeProjectionScaleFactor</dfn> function returns the value that the |session|'s [=recommended WebGL framebuffer resolution=]
10911092
MUST be multiplied by to yield the |session|'s [=native WebGL framebuffer resolution=].
10921093

10931094
ISSUE: special case UA behavior if the size causes the layout to change (ie if the requested width exceeds a limit with {{XRLayerLayout/"stereo-left-right"}})
10941095

1096+
The <dfn attribute for="XRWebGLBinding">usesDepthValues</dfn> attribute, if <code>false</code>, indicates that the
1097+
[=XR Compositor=] MUST NOT make use of values if there is a depth buffer attachment. When the attribute
1098+
is <code>true</code> it indicates that the content of the depth buffer attachment will be used by the
1099+
[=XR Compositor=] and is expected to be representative of the scene rendered into the layer.
1100+
10951101
<div class="algorithm" data-algorithm="determine the layout attribute">
10961102

10971103
To <dfn>determine the layout attribute</dfn> using an {{XRTextureType}} |textureType|, an {{XRWebGLRenderingContext}} |context| and an {{XRLayerLayout}} |layout|, the user agent MUST run the following steps:

0 commit comments

Comments
 (0)