Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The read-only XRWebGLLayer
property framebufferWidth
specifies the width of the framebuffer, in pixels.
You can get the height of the framebuffer using the framebufferHeight
property.