Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for VRDisplayCapabilities.
Developer library 6
VRDisplay
all connected VR Devices can be returned by invoking the Navigator.getVRDisplays() method. ## Instance properties - VRDisplay.capabilities - : Returns a VRDisplayCapabilities object that indicates the various capabilities of the `VRDisplay`. - VRDisplay.depthFar - : Gets and sets the z-depth defining the far plane of the [eye view frustum](https://en.wikipedia.org/wiki/Viewing_frustum), i.e., the furthest
VRDisplay: displayId property
ded by the [WebXR Device API](https://immersive-web.github.io/webxr/). ## Value A number representing the ID of the specific `VRDisplay`. ## Examples See [`VRDisplayCapabilities`](/docs/Web/API/VRDisplayCapabilities#examples) for example code. ## Specifications This property was part of the old [WebVR API](https://immersive-web.github.io/webvr/spec/1.1/) that has been superseded by the [WebXR Device API](https:
VRDisplay: capabilities property
WebVR API The **`capabilities`** read-only property of the VRDisplay interface returns a VRDisplayCapabilities object that indicates the various capabilities of the `VRDisplay`. > [!NOTE] > This property was part of the old [WebVR API](https://immersive-web.github.io/webvr/spec/1.1/). It has been superseded by the [WebXR Device API](https://immersive-web.github.io/webxr/). ## Value A VRDisplayCapabilities object.
VRDisplay: getLayers() method
Return value If the VRDisplay is presenting, this method returns an array of the VRLayerInit objects currently being presented (this will currently be one, as VRDisplayCapabilities.maxLayers is currently always 1). If the VRDisplay is not presenting, this method returns an empty array. ## Examples See [`VRLayerInit`](/docs/Web/API/VRLayerInit#examples) for example code. ## Specifications This method was part of
VRDisplay: requestPresent() method
## Return value A promise that resolves once the presentation has begun. There are a number of rules surrounding the promise's fulfillment or rejection: - If VRDisplayCapabilities.canPresent is false, or if the VRLayer array contains more than VRDisplayCapabilities.maxLayers layers, the promise will be rejected. - If the VRDisplay is already presenting when `requestPresent()` is called, the `VRDisplay` will update
VRDisplay: displayName property
like "Oculus VR HMD (HMD)" or "Oculus VR HMD (Sensor)". ## Value A string containing the human-readable name of the specific VR display. ## Examples See [`VRDisplayCapabilities`](/docs/Web/API/VRDisplayCapabilities#examples) for example code. ## Specifications This property was part of the old [WebVR API](https://immersive-web.github.io/webvr/spec/1.1/) that has been superseded by the [WebXR Device API](https: