Skip to content

Commit 6843493

Browse files
committed
Clarify that subgroupMin/MaxSize bound the compiler's choice of size
1 parent 9d5bbf1 commit 6843493

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎spec/index.bs‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,12 +2016,14 @@ interface GPUAdapterInfo {
20162016
: <dfn>subgroupMinSize</dfn>
20172017
::
20182018
If the {{GPUFeatureName/"subgroups"}} feature is supported, the minimum
2019-
supported [=builtin-value/subgroup size=] for the [=adapter=].
2019+
[=builtin-value/subgroup size=] that may be chosen by the compiler when creating
2020+
{{GPUShaderModule}}s on devices created from this [=adapter=].
20202021

20212022
: <dfn>subgroupMaxSize</dfn>
20222023
::
20232024
If the {{GPUFeatureName/"subgroups"}} feature is supported, the maximum
2024-
supported [=builtin-value/subgroup size=] for the [=adapter=].
2025+
[=builtin-value/subgroup size=] that may be chosen by the compiler when creating
2026+
{{GPUShaderModule}}s on devices created from this [=adapter=].
20252027

20262028
: <dfn>isFallbackAdapter</dfn>
20272029
::
@@ -2057,14 +2059,14 @@ interface GPUAdapterInfo {
20572059
reasonable approximation of a description.
20582060

20592061
1. If {{GPUFeatureName/"subgroups"}} is supported, set {{GPUAdapterInfo/subgroupMinSize}}
2060-
to the smallest supported subgroup size. Otherwise, set this value to 4.
2062+
to the adapter's smallest subgroup size. Otherwise, set this value to 4.
20612063

20622064
Note: To preserve privacy, the user agent may choose to not support some features or provide values
20632065
for the property which do not distinguish different devices, but are still usable
20642066
(e.g. use the default value of 4 for all devices).
20652067

20662068
1. If {{GPUFeatureName/"subgroups"}} is supported, set {{GPUAdapterInfo/subgroupMaxSize}}
2067-
to the largest supported subgroup size. Otherwise, set this value to 128.
2069+
to the adapter's largest subgroup size. Otherwise, set this value to 128.
20682070

20692071
Note: To preserve privacy, the user agent may choose to not support some features or provide values
20702072
for the property which do not distinguish different devices, but are still usable

0 commit comments

Comments
 (0)