Skip to main content

Interface: BufferReduceParams

Properties

binOps

binOps: BinOpModule

macros to customize wgsl shader for size of data and type of reduce

Defined in

packages/stoneberry/src/reduce-buffer/ReduceBuffer.ts:46


blockLength

Optional blockLength: number

number of elements to reduce in each invocation (4)

Defined in

packages/stoneberry/src/reduce-buffer/ReduceBuffer.ts:37


device

device: GPUDevice

Defined in

packages/stoneberry/src/reduce-buffer/ReduceBuffer.ts:21


forceMaxWorkgroups

Optional forceMaxWorkgroups: number

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

Defined in

packages/stoneberry/src/reduce-buffer/ReduceBuffer.ts:43


forceWorkgroupLength

Optional forceWorkgroupLength: number

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

Defined in

packages/stoneberry/src/reduce-buffer/ReduceBuffer.ts:40


label

Optional label: string

Debug label attached to gpu objects for error reporting

Defined in

packages/stoneberry/src/reduce-buffer/ReduceBuffer.ts:52


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/reduce-buffer/ReduceBuffer.ts:49


resultOffset

Optional resultOffset: number

start emitting results at this element offset in the results. (0)

Defined in

packages/stoneberry/src/reduce-buffer/ReduceBuffer.ts:34


source

source: ValueOrFn<GPUBuffer>

Source data to be reduced.

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/reduce-buffer/ReduceBuffer.ts:28


sourceOffset

Optional sourceOffset: number

start scan at this element offset in the source. (0)

Defined in

packages/stoneberry/src/reduce-buffer/ReduceBuffer.ts:31