radixHistogramWGSL¶
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/radixHistogramWGSL.ts for the most up-to-date information.
Overview¶
Calculates a histogram for a section, then writes the histogram out in a striped manner ready for a prefix sum.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Type radixHistogramWGSLOptions¶
- numBins: number
- storeHistogram: ( index: WGSLExpressionU32, value: WGSLExpressionU32 ) => WGSLStatements
indices up to numBins * Math.ceil( length / ( workgroupSize * grainSize ) ) - & WithoutNull<WithRequired<histogramWGSLOptions, "lengthExpression">, "lengthExpression">
Source Code¶
See the source for radixHistogramWGSL.ts in the alpenglow repository.