Function withPlanesIntoParallel

Validates affine planes and executes a bounded row-parallel kernel.

bool withPlanesIntoParallel(Source, Destination)(
  scope const ref RasterView!Source source,
  scope const(size_t)[] sourcePlanes,
  scope ref WritableRasterView!Destination destination,
  scope const(size_t)[] destinationPlanes,
  scope RasterPlaneWindow!Source[] sourceWindows,
  scope WritableRasterPlaneWindow!Destination[] destinationWindows,
  size_t workerLimit,
  size_t minimumChunk,
  scope nothrow @safe bool delegate(scope const(RasterPlaneWindow!Source)[] sources, scope WritableRasterPlaneWindow!Destination[] destinations, size_t firstRow, size_t endRow) kernel
) @trusted;

The callback receives the same callback-scoped windows as withPlanesInto, plus a half-open logical row range. It must only write its assigned rows and must not retain any argument or start work that outlives this call. All locally created workers are joined before this function returns. A failed callback may leave partial destination writes; callers should publish temporary output only after success.

This is a general raster primitive: it has no imagery-specific sample types, operation semantics, or process-global scheduler.