runWorkgroup method

void runWorkgroup(
  1. WorkgroupId group,
  2. KernelInputs inputs
)

Runs every invocation of the workgroup at group over inputs.

A binding the kernel reads and inputs does not hold is a StateError naming it, as a GPU refuses a dispatch with a binding missing; one it holds and the kernel does not declare is ignored.

Implementation

void runWorkgroup(WorkgroupId group, KernelInputs inputs) {
  _compiled.runWorkgroup(group.x, group.y, group.z, _resources(inputs));
}