Skip to content

ParallelRasterChunkReduce

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/ParallelRasterChunkReduce.ts for the most up-to-date information.

Overview

We continue the segmented reduction started in ParallelRasterInitialClip, also applying things to RasterClippedChunks, however we need to track the "left" and "right" values separately.

See docs on RasterChunkReduceQuad for the need for "left"/"right"

NOTE: The reduction is also completed in ParallelRasterInitialClip, so if changing this file, please check there too

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class ParallelRasterChunkReduce

import { ParallelRasterChunkReduce } from 'scenerystack/alpenglow';

Static Methods

dispatch( workgroupSize : number, inputChunkReduces : ParallelStorageArray<RasterChunkReduceQuad>, numReduces : number, clippedChunks : ParallelStorageArray<RasterClippedChunk>, outputChunkReduces : ParallelStorageArray<RasterChunkReduceQuad> ) : Promise<void>

Source Code

See the source for ParallelRasterChunkReduce.ts in the alpenglow repository.