XRCompositionLayer.destroy()

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

Returns undefined.

Examples

Deleting a layer

Call destroy() to delete a layer.

myLayer.destroy();

Specifications

No specification found

No specification data found for api.XRCompositionLayer.destroy.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

No compatibility data found for api.XRCompositionLayer.destroy.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.