XRCompositionLayer
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Giao diện XRCompositionLayer của WebXR Device API là lớp cơ sở định nghĩa một tập hợp các thuộc tính và hành vi chung cho các kiểu layer WebXR. Nó không thể được khởi tạo trực tiếp.
Một số kiểu layer kế thừa từ XRCompositionLayer:
XRCompositionLayer tự nó kế thừa từ lớp XRLayer chung (lớp này kế thừa từ EventTarget).
Thuộc tính phiên bản
XRCompositionLayer.blendTextureSourceAlphaExperimental-
Một giá trị boolean cho phép kênh alpha texture của layer.
XRCompositionLayer.layoutRead only Experimental-
Kiểu bố cục của layer.
XRCompositionLayer.mipLevelsRead only Experimental-
Số lượng mip level trong dữ liệu màu sắc và texture cho layer.
XRCompositionLayer.needsRedrawRead only Experimental-
Một giá trị boolean báo hiệu rằng layer cần được kết xuất lại trong frame tiếp theo.
Phương thức phiên bản
Kế thừa các phương thức từ giao diện cha, EventTarget.
XRCompositionLayer.destroy()Experimental-
Xóa các tệp đính kèm layer bên dưới.
Thông số kỹ thuật
| Specification |
|---|
| WebXR Layers API Level 1> # xrcompositionlayertype> |