mergeSequentialWGSL¶
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/mergeSequentialWGSL.ts for the most up-to-date information.
Overview¶
A template that merges together two sorted arrays into a single sorted array (in a fully sequential single-thread way)
@author Jonathan Olson <jonathan.olson@colorado.edu>
Type mergeSequentialWGSLOptions¶
- lengthA: WGSLExpressionU32
- lengthB: WGSLExpressionU32
- compare: ( indexA: WGSLExpressionU32, indexB: WGSLExpressionU32 ) => WGSLExpressionI32
=> {-1, 0, 1} (i32) - setFromA: ( indexOutput: WGSLExpressionU32, indexA: WGSLExpressionU32 ) => WGSLStatements
- setFromB: ( indexOutput: WGSLExpressionU32, indexB: WGSLExpressionU32 ) => WGSLStatements
Source Code¶
See the source for mergeSequentialWGSL.ts in the alpenglow repository.