Skip to main content

Interface: HistogramTextureParams

Properties​

blockSize​

• Optional blockSize: Vec2

length of block to read per thread when reading from the source texture

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:30


bucketSums​

• Optional bucketSums: boolean

optinally calculate sums for each bucket in addition to counts

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:45


bufferBlockLength​

• Optional bufferBlockLength: number

number of histograms to read per thread when reducing from buffer to buffer

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:33


device​

• device: GPUDevice

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:19


forceWorkgroupSize​

• Optional forceWorkgroupSize: Vec2

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

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:36


histogramOps​

• histogramOps: HistogramModule

wgsl macros for histogram reduction and histogram size. Typically call histogramModule()

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:39


label​

• Optional label: string

Debug label attached to gpu objects for error reporting

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:57


minMaxBuffer​

• Optional minMaxBuffer: GPUBuffer

buffer containing min and max values for the histogram range (or use range)

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:42


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/histogram-texture/HistogramTexture.ts:54


range​

• Optional range: Vec2

range of histogram values (or provide minMaxBuffer)

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:48


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/histogram-texture/HistogramTexture.ts:27


sourceComponent​

• Optional sourceComponent: LoadComponent | ComponentName

select or synthesize a component from the source texture

Defined in​

packages/stoneberry/src/histogram-texture/HistogramTexture.ts:51