GPUAdapterInfo: subgroupMaxSize property
WebGPU API
WebGPU API
The subgroupMaxSize read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
Value
A number.
Examples
const adapter = await navigator.gpu.requestAdapter();
if (!adapter) {
throw Error("Couldn't request WebGPU adapter.");
}
const adapterInfo = adapter.info;
console.log(adapterInfo.subgroupMaxSize);
Specifications
Browser compatibility
See also
- The WebGPU API