WebXR Device API
The destroy() method of the XRCompositionLayer interface deletes the references to the underlying graphics library for the layer. It also sets the color textures and depth stencil texture arrays to an empty array.
Syntax
destroy()
Parameters
None.
Return value
None (undefined).
Examples
Deleting a layer
Call destroy() to delete a layer.
myLayer.destroy();
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
