Skip to content

ParallelKernel

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

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.