dispatch method

  1. @override
void dispatch(
  1. int x, [
  2. int y = 1,
  3. int z = 1
])
override

Runs the bound pipeline over a grid of x × y × z workgroups.

Implementation

@override
void dispatch(int x, [int y = 1, int z = 1]) {
  if (_pipeline == null) {
    throw StateError('dispatch before any compute pipeline was bound');
  }
  checkDispatch(limits, x, y, z);
  commands.add(RecordedCall('dispatch', arguments: (x: x, y: y, z: z)));
}