ParallelRaster¶
Overview¶
Rasterization prototype for WebGPU, but using the parallel (debuggable) API.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class ParallelRaster¶
Static Methods¶
getTestRawInputChunks() : RasterChunk[]¶
getTestRawInputEdges() : RasterEdge[]¶
test() : Promise<void>¶
process( workgroupSize : number, numInputChunks : number, numInputEdges : number, inputChunks : ParallelStorageArray<RasterChunk>, inputEdges : ParallelStorageArray<RasterEdge> ) : Promise<{¶
reducibleChunks: [ParallelStorageArray](../alpenglow/ParallelStorageArray.md)<[RasterChunk](../alpenglow/RasterChunk.md)>;
reducibleEdges: [ParallelStorageArray](../alpenglow/ParallelStorageArray.md)<[RasterEdge](../alpenglow/RasterEdge.md)>;
numReducibleChunks: <span style="color: hsla(calc(var(--md-hue) + 180deg),80%,40%,1);">number</span>;
numReducibleEdges: <span style="color: hsla(calc(var(--md-hue) + 180deg),80%,40%,1);">number</span>;
completeChunks: [ParallelStorageArray](../alpenglow/ParallelStorageArray.md)<[RasterCompleteChunk](../alpenglow/RasterCompleteChunk.md)>;
completeEdges: [ParallelStorageArray](../alpenglow/ParallelStorageArray.md)<[RasterCompleteEdge](../alpenglow/RasterCompleteEdge.md)>;
numCompleteChunks: <span style="color: hsla(calc(var(--md-hue) + 180deg),80%,40%,1);">number</span>;
numCompleteEdges: <span style="color: hsla(calc(var(--md-hue) + 180deg),80%,40%,1);">number</span>;
}> {: #process data-toc-label='process' }
Source Code¶
See the source for ParallelRaster.ts in the alpenglow repository.