Skip to content

bitPackRadixIncrementWGSL

Overview

Increments a count from within a bit-packed histogram. See bit_pack_radix_access for more documentation.

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

Type bitPackRadixIncrementWGSLOptions

import type { bitPackRadixIncrementWGSLOptions } from 'scenerystack/alpenglow';
  • bits: WGSLExpressionU32
    u32 name
  • bitVector: WGSLVariableName
    (u32/vec2u/vec3u/vec4u) name
  • bitsPerInnerPass: number
    TODO: once this is working, form it into a larger object of settings for Radix handling e.g. 2 for a two-bit sort
  • bitVectorSize: number
    (½/¾) for (u32/vec2u/vec3u/vec4u) e.g. 4 for a vec4u
  • maxCount: number
    the maximum count in the histogram

Source Code

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