groupsFor method

int groupsFor(
  1. int invocations
)

How many workgroups along x cover invocations invocations.

Implementation

int groupsFor(int invocations) {
  final x = workgroupSize.x;
  return (invocations + x - 1) ~/ x;
}