Skip to content

ParallelRaster

Overview

Rasterization prototype for WebGPU, but using the parallel (debuggable) API.

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

Class ParallelRaster

import { ParallelRaster } from 'scenerystack/alpenglow';

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)&lt;[RasterChunk](../alpenglow/RasterChunk.md)&gt;;
reducibleEdges: [ParallelStorageArray](../alpenglow/ParallelStorageArray.md)&lt;[RasterEdge](../alpenglow/RasterEdge.md)&gt;;
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)&lt;[RasterCompleteChunk](../alpenglow/RasterCompleteChunk.md)&gt;;
completeEdges: [ParallelStorageArray](../alpenglow/ParallelStorageArray.md)&lt;[RasterCompleteEdge](../alpenglow/RasterCompleteEdge.md)&gt;;
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.