Skip to content

ParallelKernel

Overview

Represents a WGPU-like kernel that can be executed in parallel. Designed so that we can test WGPU-like code, but use the debugging facilities of the browser to debug it.

See ParallelExecutor for more high-level documentation.

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

Class ParallelKernel

import { ParallelKernel } from 'scenerystack/alpenglow';

Constructor

new ParallelKernel( execute : ( context: ParallelContext<WorkgroupValues> ) => Promise<void>, createWorkgroupValues : () => WorkgroupValues, storageArrays : ParallelStorageArray<unknown>[], workgroupX, workgroupY, workgroupZ )

Instance Methods

Source Code

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