Skip to content

mainReduceNonCommutativeWGSL

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/webgpu/wgsl/gpu/mainReduceNonCommutativeWGSL.ts for the most up-to-date information.

Overview

A specialized raked reduce for when our input is non-commutative AND stored in a blocked (not striped) order. We essentially serialize some of it (reading a workgroup-size chunk at a time, reducing it, then loading the next).

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

Type mainReduceNonCommutativeWGSLOptions

import type { mainReduceNonCommutativeWGSLOptions } from 'scenerystack/alpenglow';

Source Code

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