UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ParticleSortingGPU.h File Reference
#include "CoreMinimal.h"
#include "RenderResource.h"
#include "GPUSortManager.h"

Go to the source code of this file.

Classes

struct  FParticleSimulationSortInfo
 

Functions

int32 GenerateParticleSortKeys (FRHICommandListImmediate &RHICmdList, FRHIUnorderedAccessView *KeyBufferUAV, FRHIUnorderedAccessView *SortedVertexBufferUAV, FRHITexture *PositionTextureRHI, const TArray< FParticleSimulationSortInfo > &SimulationsToSort, ERHIFeatureLevel::Type FeatureLevel, int32 BatchId=INDEX_NONE)
 

Function Documentation

◆ GenerateParticleSortKeys()

int32 GenerateParticleSortKeys ( FRHICommandListImmediate RHICmdList,
FRHIUnorderedAccessView KeyBufferUAV,
FRHIUnorderedAccessView SortedVertexBufferUAV,
FRHITexture PositionTextureRHI,
const TArray< FParticleSimulationSortInfo > &  SimulationsToSort,
ERHIFeatureLevel::Type  FeatureLevel,
int32  BatchId 
)

Generate sort keys for a list of particles.

Parameters
KeyBufferUAV- Unordered access view of the buffer where sort keys will be stored.
SortedVertexBufferUAV- Unordered access view of the vertex buffer where particle indices will be stored.
PositionTextureRHI- The texture containing world space positions for all particles.
SimulationsToSort- A list of simulations to generate sort keys for.
Returns
the total number of particles being sorted.