GPUDevice: phương thức createBindGroup()

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 createBindGroup() của giao diện GPUDevice tạo một GPUBindGroup dựa trên một GPUBindGroupLayout, mô tả tập hợp tài nguyên được ràng buộc cùng nhau trong một nhóm và cách các tài nguyên đó được dùng trong các giai đoạn shader.

Cú pháp

js
createBindGroup(descriptor)

Tham số

descriptor

Đối tượng mô tả nhóm ràng buộc cần tạo.

Giá trị trả về

Một thể hiện GPUBindGroup.

Đặc tả

Specification
WebGPU
# dom-gpudevice-createbindgroup

Tương thích trình duyệt