mergeSimpleWGSL¶
Overview¶
A template that merges together two sorted arrays into a single sorted array.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Type mergeSimpleWGSLOptions¶
- lengthA: WGSLExpressionU32
- lengthB: WGSLExpressionU32
- compare: ( indexA: WGSLExpressionU32, indexB: WGSLExpressionU32 ) => WGSLExpressionI32
=> {-1, 0, 1} (i32) - greaterThan?: ( ( indexA: WGSLExpressionU32, indexB: WGSLExpressionU32 ) => WGSLExpressionBool ) | null
used (sometimes) instead of compare if provided - lessThanOrEqual?: ( ( indexA: WGSLExpressionU32, indexB: WGSLExpressionU32 ) => WGSLExpressionBool ) | null
- setFromA: ( indexOutput: WGSLExpressionU32, indexA: WGSLExpressionU32 ) => WGSLStatements
- setFromB: ( indexOutput: WGSLExpressionU32, indexB: WGSLExpressionU32 ) => WGSLStatements
- & GrainSizable & GlobalIndexable
Source Code¶
See the source for mergeSimpleWGSL.ts in the alpenglow repository.