public void Execute(ComputeDevice computeDevice) { this.computeDevice = computeDevice; computeDevice.ParallelFor(fromInclusive, toExclusive, action); }
private static void execute(int fromInclusiveX, int toExclusiveX, int fromInclusiveY, int toExclusiveY, Action <int, int> action, ComputeDevice computeDevice) { computeDevice.ParallelFor(fromInclusiveX, toExclusiveX, fromInclusiveY, toExclusiveY, action); }