files/en-us/web/api/xrprojectionlayer/index.md
{{securecontext_header}}{{APIRef("WebXR Device API")}}{{SeeCompatTable}}
The XRProjectionLayer interface of the WebXR Device API is a layer that fills the entire view of the observer and is refreshed close to the device's native frame rate.
XRProjectionLayer is supported by all {{domxref("XRSession")}} objects (no layers feature descriptor is needed).
To create a new XRProjectionLayer, call {{domxref("XRWebGLBinding.createProjectionLayer()")}}.
To present layers to the XR device, add them to the layers render state using {{domxref("XRSession.updateRenderState()")}}.
XRProjectionLayer objects don't have an associated {{domxref("XRSpace")}}, because they render to the full frame.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("XRCompositionLayer")}} and {{domxref("EventTarget")}}.
texture-array as the textureType.Inherits methods from its parents, {{domxref("XRCompositionLayer")}} and {{domxref("EventTarget")}}.
{{Specifications}}
{{Compat}}