mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Allow VR RAF loop to handle changes in the layer, support pending renderstates
This commit is contained in:
parent
401b470e90
commit
e20909cf43
4 changed files with 170 additions and 44 deletions
|
@ -5,9 +5,9 @@
|
|||
// https://immersive-web.github.io/webxr/#xrrenderstate-interface
|
||||
|
||||
dictionary XRRenderStateInit {
|
||||
double depthNear = 0.1;
|
||||
double depthFar = 1000.0;
|
||||
XRLayer? baseLayer = null;
|
||||
double depthNear;
|
||||
double depthFar;
|
||||
XRLayer baseLayer;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRRenderState {
|
||||
|
|
|
@ -26,6 +26,7 @@ interface XRSession : EventTarget {
|
|||
|
||||
// FrozenArray<XRInputSource> getInputSources();
|
||||
|
||||
Promise<void> updateRenderState(optional XRRenderStateInit state);
|
||||
long requestAnimationFrame(XRFrameRequestCallback callback);
|
||||
void cancelAnimationFrame(long handle);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue