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

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 createQuerySet() của giao diện GPUDevice tạo một GPUQuerySet có thể dùng để ghi lại kết quả của các truy vấn trên các pass, chẳng hạn truy vấn occlusion hoặc timestamp.

Cú pháp

js
createQuerySet(descriptor)

Tham số

descriptor

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

Giá trị trả về

Một thể hiện GPUQuerySet.

Đặc tả

Specification
WebGPU
# dom-gpudevice-createqueryset

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