mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Support for webxr layer management
This commit is contained in:
parent
af110ac21f
commit
349619ed2d
34 changed files with 949 additions and 642 deletions
|
@ -5,9 +5,6 @@
|
|||
// https://immersive-web.github.io/layers/#xrlayertype
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.layers.enabled"]
|
||||
interface XRLayer {
|
||||
readonly attribute unsigned long pixelWidth;
|
||||
readonly attribute unsigned long pixelHeight;
|
||||
|
||||
// attribute boolean blendTextureSourceAlpha;
|
||||
// attribute boolean chromaticAberrationCorrection;
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@ dictionary XRWebGLLayerInit {
|
|||
boolean depth = true;
|
||||
boolean stencil = false;
|
||||
boolean alpha = true;
|
||||
// double framebufferScaleFactor = 1.0;
|
||||
boolean ignoreDepthValues = false;
|
||||
double framebufferScaleFactor = 1.0;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
// https://immersive-web.github.io/layers/#xrwebglsubimagetype
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.layers.enabled"]
|
||||
interface XRWebGLSubImage : XRSubImage {
|
||||
readonly attribute WebGLTexture colorTexture;
|
||||
readonly attribute WebGLTexture? depthStencilTexture;
|
||||
[SameObject] readonly attribute WebGLTexture colorTexture;
|
||||
[SameObject] readonly attribute WebGLTexture? depthStencilTexture;
|
||||
readonly attribute unsigned long? imageIndex;
|
||||
readonly attribute unsigned long textureWidth;
|
||||
readonly attribute unsigned long textureHeight;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue