ParallelRasterEdgeIndexPatch¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/parallel/raster-clip/ParallelRasterEdgeIndexPatch.ts for the most up-to-date information.
Overview¶
Updates the edges with the correct chunk indices (clippedChunk => outputChunk) and first/last flags.
NOTE: It was possible to attempt to set first/last flags earlier (when we wrote the edges), but it would require more traversal for edges that were fully clipped at the start/end (so they didn't contribute at all). We would instead have to find the first/last "non-degenerate" EdgeClip, so it's just easier to do it here.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class ParallelRasterEdgeIndexPatch¶
Static Methods¶
dispatch( workgroupSize : number, chunkIndexMap : ParallelStorageArray<number>, chunkIndices : ParallelStorageArray<number>, numEdges : number, edges : ParallelStorageArray<RasterEdge> ) : Promise<void>¶
Source Code¶
See the source for ParallelRasterEdgeIndexPatch.ts in the alpenglow repository.