GPUDevice: phương thức createBindGroupLayout()
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 createBindGroupLayout() của giao diện GPUDevice tạo một GPUBindGroupLayout xác định cấu trúc và mục đích của các tài nguyên GPU liên quan như buffer sẽ được dùng trong pipeline, và được dùng làm khuôn mẫu khi tạo GPUBindGroup.
Cú pháp
js
createBindGroupLayout(descriptor)
Tham số
descriptor-
Đối tượng mô tả layout cần tạo.
Giá trị trả về
Một thể hiện GPUBindGroupLayout.
Đặc tả
| Specification |
|---|
| WebGPU> # dom-gpudevice-createbindgrouplayout> |