XRCompositionLayer
Khả dụng hạn chế
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.blendTextureSourceAlphaThử nghiệm-
Một giá trị boolean cho phép kênh alpha texture của layer.
XRCompositionLayer.layoutRead only Thử nghiệm-
Kiểu bố cục của layer.
XRCompositionLayer.mipLevelsRead only Thử nghiệm-
Số lượng mip level trong dữ liệu màu sắc và texture cho layer.
XRCompositionLayer.needsRedrawRead only Thử nghiệm-
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()Thử nghiệm-
Xóa các tệp đính kèm layer bên dưới.
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebXR Layers API Level 1> # xrcompositionlayertype> |