RadixSort32

Very fast 32bit radix sort.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/Sorting.h

Include

#include "Templates/Sorting.h"

Syntax

template<typename ValueType, typename CountType, class SortKeyClass>
void RadixSort32
(
    ValueType *restrict Dst,
    ValueType *
restrict Src,
    CountType Num,
    SortKeyClass SortKey
)

Remarks

Very fast 32bit radix sort. SortKeyClass defines operator() that takes ValueType and returns a uint32. Sorting based on key. No comparisons. Is stable. Use a smaller CountType for smaller histograms.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss