mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
perf(core): Interface::check_stage: just check total_invocations == 0
This commit is contained in:
1 parent
ac79412501
commit
5d77bb336f
1 file changed
+1
-1
@@ -1427,7 +1427,7 @@ impl Interface {
|
||||
.iter()
|
||||
.fold(1u32, |total, &dim| total.saturating_mul(dim));
|
||||
|
||||
let workgroup_size_is_zero = entry_point.workgroup_size.contains(&0);
|
||||
let workgroup_size_is_zero = total_invocations == 0;
|
||||
let too_many_invocations = total_invocations > max_workgroup_size_total;
|
||||
let dimension_too_large = entry_point.workgroup_size[0] > max_workgroup_size_limits[0]
|
||||
|| entry_point.workgroup_size[1] > max_workgroup_size_limits[1]
|
||||
|
||||
Reference in new issue
Block a user