FfxParallelSortConstants

Constant buffer information needed for the execution of each pass in parallel sort.

File location: sdk/include/FidelityFX/gpu/parallelsort/ffx_parallelsort.h

Detailed description

Constant buffer information needed for the execution of each pass in parallel sort.

Data fields

Type

Description

FfxUInt32

numKeys
The number of keys to sort.

FfxInt32

numBlocksPerThreadGroup
How many blocks of keys each thread group needs to process.

FfxUInt32

numThreadGroups
How many thread groups are being run concurrently for sort.

FfxUInt32

numThreadGroupsWithAdditionalBlocks
How many thread groups need to process additional block data.

FfxUInt32

numReduceThreadgroupPerBin
How many thread groups are summed together for each reduced bin entry.

FfxUInt32

numScanValues
How many values to perform scan prefix (+ add) on.

FfxUInt32

shift
What bits are being sorted (4 bit increments)

FfxUInt32

padding
Padding – unused.