mergeSequentialWGSL¶
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.