Interface: ReduceTextureParams
Properties
binOps
• binOps: BinOpModule
wgsl macros for a binary operation to reduce two elements to one
Defined in
packages/stoneberry/src/reduce-texture/ReduceTexture.ts:38
blockSize
• Optional blockSize: Vec2
length of block to read when reducing from texture to buffer
Defined in
packages/stoneberry/src/reduce-texture/ReduceTexture.ts:29
bufferBlockLength
• Optional bufferBlockLength: number
length of block to read when reducing from buffer to buffer
Defined in
packages/stoneberry/src/reduce-texture/ReduceTexture.ts:32
device
• device: GPUDevice
Defined in
packages/stoneberry/src/reduce-texture/ReduceTexture.ts:18
forceWorkgroupSize
• Optional forceWorkgroupSize: Vec2
number and arrangement of threads in each dispatched workgroup
Defined in
packages/stoneberry/src/reduce-texture/ReduceTexture.ts:35
label
• Optional label: string
Debug label attached to gpu objects for error reporting
Defined in
packages/stoneberry/src/reduce-texture/ReduceTexture.ts:47
pipelineCache
• Optional pipelineCache: <T>() => Cache<T>
cache for GPUComputePipeline
Type declaration
▸ <T>(): Cache<T>
Type parameters
| Name | Type |
|---|---|
T | extends object |
Returns
Cache<T>
Defined in
packages/stoneberry/src/reduce-texture/ReduceTexture.ts:44
source
• source: ValueOrFn<GPUTexture>
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-texture/ReduceTexture.ts:26
sourceComponent
• Optional sourceComponent: LoadComponent | ComponentName
select or synthesize a component from the source texture