GPUAdapterInfo: thuộc tính subgroupMinSize

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.

Thuộc tính chỉ đọc subgroupMinSize của giao diện GPUAdapterInfo trả về kích thước subgroup tối thiểu được hỗ trợ cho GPUAdapter. Thuộc tính này có thể được sử dụng cùng với tính năng subgroups của GPUSupportedFeatures.

Giá trị

Một số.

Ví dụ

js
const adapter = await navigator.gpu.requestAdapter();
if (!adapter) {
  throw Error("Couldn't request WebGPU adapter.");
}

const adapterInfo = adapter.info;
console.log(adapterInfo.subgroupMinSize);

Thông số kỹ thuật

Thông số kỹ thuật
WebGPU
# dom-gpuadapterinfo-subgroupminsize

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

Xem thêm