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