SortGPUBuffers

Sort a buffer on the GPU.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/GPUSort.h

Include

#include "GPUSort.h"

Source

/Engine/Source/Runtime/Engine/Private/GPUSort.cpp

Syntax

int32 SortGPUBuffers
(
    FRHICommandListImmediate & RHICmdList,
    FGPUSortBuffers SortBuffers,
    int32 BufferIndex,
    uint32 KeyMask,
    int32 Count,
    ERHIFeatureLevel::Type FeatureLevel
)

Remarks

Sort a buffer on the GPU.

Returns

The index of the buffer containing sorted results.

Parameters

Parameter

Description

SortBuffers

The buffer to sort including required views and a ping- pong location of appropriate size.

BufferIndex

Index of the buffer containing keys.

KeyMask

Bitmask indicating which key bits contain useful information.

Count

How many items in the buffer need to be sorted.

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