File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1191,7 +1191,7 @@ impl Interface {
11911191 ] ;
11921192 let total_invocations = entry_point. workgroup_size . iter ( ) . product :: < u32 > ( ) ;
11931193
1194- if entry_point. workgroup_size . iter ( ) . any ( | & s| s == 0 )
1194+ if entry_point. workgroup_size . contains ( & 0 )
11951195 || total_invocations > self . limits . max_compute_invocations_per_workgroup
11961196 || entry_point. workgroup_size [ 0 ] > max_workgroup_size_limits[ 0 ]
11971197 || 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 {
11991199
12001200 unsafe fn dispatch ( & mut self , count : [ u32 ; 3 ] ) {
12011201 // Empty dispatches are invalid in OpenGL, but valid in WebGPU.
1202- if count. iter ( ) . any ( | & c| c == 0 ) {
1202+ if count. contains ( & 0 ) {
12031203 return ;
12041204 }
12051205 self . cmd_buffer . commands . push ( C :: Dispatch ( count) ) ;
You can’t perform that action at this time.
0 commit comments