mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
#import <WebGL/WebGLRenderingContext.idl>
|
|
#import <WebGL/WebGL2RenderingContext.idl>
|
|
// https://immersive-web.github.io/webxr/#xrwebgllayer-interface
|
|
|
|
typedef (WebGLRenderingContext or
|
|
WebGL2RenderingContext) XRWebGLRenderingContext;
|
|
|
|
[Experimental] dictionary XRWebGLLayerInit {
|
|
boolean antialias = true;
|
|
boolean depth = true;
|
|
boolean stencil = false;
|
|
boolean alpha = true;
|
|
boolean ignoreDepthValues = false;
|
|
double framebufferScaleFactor = 1.0;
|
|
};
|
|
|
|
[Experimental, SecureContext, Exposed=Window]
|
|
interface XRWebGLLayer: XRLayer {
|
|
constructor(XRSession session,
|
|
XRWebGLRenderingContext context,
|
|
optional XRWebGLLayerInit layerInit = {});
|
|
// Attributes
|
|
[FIXME] readonly attribute boolean antialias;
|
|
[FIXME] readonly attribute boolean ignoreDepthValues;
|
|
[FIXME] attribute float? fixedFoveation;
|
|
|
|
[FIXME, SameObject] readonly attribute WebGLFramebuffer? framebuffer;
|
|
[FIXME] readonly attribute unsigned long framebufferWidth;
|
|
[FIXME] readonly attribute unsigned long framebufferHeight;
|
|
|
|
// Methods
|
|
[FIXME] XRViewport? getViewport(XRView view);
|
|
|
|
// Static Methods
|
|
[FIXME] static double getNativeFramebufferScaleFactor(XRSession session);
|
|
};
|