Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24224df

Browse files
authored
Make maxBindingsPerBindGroup 1000 and explain it clearly (gpuweb#4050)
1 parent b97a29e commit 24224df

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

spec/index.bs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,13 +1564,16 @@ A <dfn dfn>supported limits</dfn> object has a value for every limit defined by
15641564
when creating a {{GPUPipelineLayout}}.
15651565

15661566
<tr><td><dfn>maxBindingsPerBindGroup</dfn>
1567-
<td>{{GPUSize32}} <td>[=limit class/maximum=] <td>640
1567+
<td>{{GPUSize32}} <td>[=limit class/maximum=] <td>1000
15681568
<tr class=row-continuation><td colspan=4>
1569-
The maximum allowed number of {{GPUBindGroupLayoutEntry}}.{{GPUBindGroupLayoutEntry/binding}}
1570-
values when creating a {{GPUBindGroupLayout}}.
1571-
1572-
Note: 640 "ought to be enough for anybody" who is using the default
1573-
[=exceeds the binding slot limits|binding slot limits=].
1569+
The number of binding indices available when creating a {{GPUBindGroupLayout}}.
1570+
1571+
Note: This limit is normative, but arbitrary.
1572+
With the default [=exceeds the binding slot limits|binding slot limits=], it is impossible
1573+
to use 1000 bindings in one bind group, but this allows
1574+
{{GPUBindGroupLayoutEntry}}.{{GPUBindGroupLayoutEntry/binding}} values up to 999.
1575+
This limit allows implementations to treat binding space as an array,
1576+
within reasonable memory space, rather than a sparse map structure.
15741577

15751578
<tr><td><dfn>maxDynamicUniformBuffersPerPipelineLayout</dfn>
15761579
<td>{{GPUSize32}} <td>[=limit class/maximum=] <td>8

0 commit comments

Comments
 (0)