File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1191,7 +1191,7 @@ impl Interface {
1191
1191
] ;
1192
1192
let total_invocations = entry_point. workgroup_size . iter ( ) . product :: < u32 > ( ) ;
1193
1193
1194
- if entry_point. workgroup_size . iter ( ) . any ( | & s| s == 0 )
1194
+ if entry_point. workgroup_size . contains ( & 0 )
1195
1195
|| total_invocations > self . limits . max_compute_invocations_per_workgroup
1196
1196
|| entry_point. workgroup_size [ 0 ] > max_workgroup_size_limits[ 0 ]
1197
1197
|| entry_point. workgroup_size [ 1 ] > max_workgroup_size_limits[ 1 ]
Original file line number Diff line number Diff line change @@ -1199,7 +1199,7 @@ impl crate::CommandEncoder for super::CommandEncoder {
1199
1199
1200
1200
unsafe fn dispatch ( & mut self , count : [ u32 ; 3 ] ) {
1201
1201
// Empty dispatches are invalid in OpenGL, but valid in WebGPU.
1202
- if count. iter ( ) . any ( | & c| c == 0 ) {
1202
+ if count. contains ( & 0 ) {
1203
1203
return ;
1204
1204
}
1205
1205
self . cmd_buffer . commands . push ( C :: Dispatch ( count) ) ;
You can’t perform that action at this time.
0 commit comments