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

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 createRenderPipeline() của giao diện GPUDevice tạo một GPURenderPipeline có thể điều khiển các giai đoạn vertex và fragment shader và được dùng trong GPURenderPassEncoder hoặc GPURenderBundleEncoder.

Cú pháp

js
createRenderPipeline(descriptor)

Tham số

descriptor

Đối tượng mô tả pipeline dựng hình cần tạo.

Giá trị trả về

Một thể hiện GPURenderPipeline.

Đặc tả

Specification
WebGPU
# dom-gpudevice-createrenderpipeline

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