Skip to main content

Interface: PrefixScanArgs

Parameters to construct a PrefixScan instance.

Properties

binOps

Optional binOps: BinOpModule

customize the type of scan (e.g. prefix sum on 32 bit floats)

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:29


device

device: GPUDevice

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:18


exclusive

Optional exclusive: boolean

Inclusive scan accumulates a binary operation across all source elements. Exclusive scan accumulates a binary operation across source elements, using initialValue as the first element and stopping before the final source element.

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:32


forceWorkgroupLength

Optional forceWorkgroupLength: number

Override to set compute workgroup size e.g. for testing.

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:41


initialValue

Optional initialValue: number

Initial value for exclusive scan

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:35


label

Optional label: string

Debug label attached to gpu objects for error reporting

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:38


maxWorkgroups

Optional maxWorkgroups: number

Override to set max number of workgroups for dispatch e.g. for testing.

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:44


pipelineCache

Optional pipelineCache: <T>() => Cache<T>

cache for GPUComputePipeline

Type declaration

▸ <T>(): Cache<T>

Type parameters
NameType
Textends object
Returns

Cache<T>

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:47


source

source: ValueOrFn<GPUBuffer>

Source data to be scanned.

A function returning the source buffer will be executed lazily, and reexecuted if the function's @reactively source values change.

Defined in

packages/stoneberry/src/scan/PrefixScan.ts:26