Function withViewsParallelPhases

Performs multiple synchronous row phases over planes belonging to several independently backed, read-only views. All views must have the same logical extent. sourcePlanes[i] selects planes from sources[i] and sourceWindows[i] is caller-owned workspace for the corresponding callback-scoped windows.

bool withViewsParallelPhases(Source)(
  scope const(RasterView!Source)[] sources,
  scope const(size_t)[][] sourcePlanes,
  scope RasterPlaneWindow!Source[][] sourceWindows,
  size_t workerLimit,
  size_t minimumChunk,
  scope nothrow @safe bool delegate(scope RasterPlaneWindow!Source[][] sourceWindows, ParallelRowsOperation operation) phases
) @trusted;

This is the multi-view counterpart of withPlanesParallelPhases. It is intentionally homogeneous in sample type so that callbacks can consume compact nested window arrays without a type-erased public API. Different logical sample domains can be composed by invoking this primitive once per domain around the same caller-owned phase state.