GPUDevice: phương thức createRenderBundleEncoder()
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.
Note: This feature is available in Web Workers.
Phương thức createRenderBundleEncoder() của giao diện GPUDevice tạo một GPURenderBundleEncoder có thể dùng để ghi sẵn các gói lệnh. Chúng có thể được tái sử dụng trong GPURenderPassEncoder thông qua phương thức executeBundles() nhiều lần tùy cần.
Cú pháp
js
createRenderBundleEncoder(descriptor)
Tham số
descriptor-
Đối tượng mô tả bộ mã hóa render bundle cần tạo.
Giá trị trả về
Một thể hiện GPURenderBundleEncoder.
Đặc tả
| Specification |
|---|
| WebGPU> # dom-gpudevice-createrenderbundleencoder> |