예제 #1
0
 public void Execute(ComputeDevice computeDevice)
 {
     this.computeDevice = computeDevice;
     computeDevice.ParallelFor(fromInclusive, toExclusive, action);
 }
예제 #2
0
 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);
 }