webxr: Update XRWebGLLayer interface to latest spec (#33157)

* Update XRWebGLLayer interface to latest spec

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Add missing spec links

Signed-off-by: Daniel Adams <msub2official@gmail.com>

---------

Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
Daniel Adams 2024-08-21 16:18:58 -10:00 committed by GitHub
parent cde10241c3
commit 562d32c051
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 14 deletions

View file

@ -24,6 +24,7 @@ interface XRWebGLLayer: XRLayer {
// Attributes
readonly attribute boolean antialias;
readonly attribute boolean ignoreDepthValues;
attribute float? fixedFoveation;
[SameObject] readonly attribute WebGLFramebuffer? framebuffer;
readonly attribute unsigned long framebufferWidth;
@ -32,8 +33,8 @@ interface XRWebGLLayer: XRLayer {
// Methods
XRViewport? getViewport(XRView view);
// // Static Methods
// static double getNativeFramebufferScaleFactor(XRSession session);
// Static Methods
static double getNativeFramebufferScaleFactor(XRSession session);
};
partial interface mixin WebGLRenderingContextBase {