Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/GPUSort.h |
| Include | #include "GPUSort.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GPUSort.cpp |
int32 SortGPUBuffers
(
FRHICommandList & RHICmdList,
FGPUSortBuffers SortBuffers,
int32 BufferIndex,
uint32 KeyMask,
int32 Count,
ERHIFeatureLevel::Type FeatureLevel
)
Remarks
Sort a buffer on the GPU. The index of the buffer containing sorted results.
Parameters
| Name | 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. |