Function withViewsIntoParallelPhases
Multi-view source-to-destination phased execution. Source views may have distinct backings, while all source and destination views must share the same logical extent. Destination alias checks are conservative and are performed before the callback is entered.
bool withViewsIntoParallelPhases(Source, Destination)(
scope const(RasterView!Source)[] sources,
scope const(size_t)[][] sourcePlanes,
scope RasterPlaneWindow!Source[][] sourceWindows,
scope ref WritableRasterView!Destination destination,
scope const(size_t)[] destinationPlanes,
scope WritableRasterPlaneWindow!Destination[] destinationWindows,
size_t workerLimit,
size_t minimumChunk,
scope nothrow @safe bool delegate(scope RasterPlaneWindow!Source[][] sourceWindows, scope WritableRasterPlaneWindow!Destination[] destinations, ParallelRowsOperation operation) phases
) @trusted;
Example
Example rejecting an invalid multi-plane request.
import raster;
RasterView!ubyte source;
WritableRasterView!float destination;
RasterPlaneWindow!ubyte[1] sources;
WritableRasterPlaneWindow!float[1] destinations;
assert(!withPlanesInto(
source, [0], destination, [0], sources[], destinations[], null));
Example
Example rejecting an invalid affine read-plane request.
import raster;
RasterView!ubyte view;
assert(!withPlane!ubyte(view, 0, null));