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

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.

Note: This feature is available in Web Workers.

Phương thức createPipelineLayout() của giao diện GPUDevice tạo một GPUPipelineLayout xác định các GPUBindGroupLayout mà một pipeline sử dụng. Các GPUBindGroup dùng cùng pipeline trong quá trình mã hóa lệnh phải có GPUBindGroupLayout tương thích.

Cú pháp

js
createPipelineLayout(descriptor)

Tham số

descriptor

Đối tượng mô tả layout pipeline cần tạo.

Giá trị trả về

Một thể hiện GPUPipelineLayout.

Đặc tả

Thông số kỹ thuật
WebGPU
# dom-gpudevice-createpipelinelayout

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