![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Particles/ParticleSortingGPU.h"#include "Particles/ParticleSimulationGPU.h"#include "PipelineStateCache.h"#include "ShaderParameterUtils.h"#include "GlobalShader.h"#include "GPUSort.h"#include "DataDrivenShaderPlatformInfo.h"#include "RHIContext.h"#include "ShaderParameterMacros.h"Classes | |
| class | FParticleSortKeyGenCS |
Macros | |
| #define | PARTICLE_KEY_GEN_THREAD_COUNT 64 |
Typedefs | |
| typedef TUniformBufferRef< FParticleKeyGenParameters > | FParticleKeyGenUniformBufferRef |
Functions | |
| IMPLEMENT_GLOBAL_SHADER_PARAMETER_STRUCT (FParticleKeyGenParameters,"ParticleKeyGen") | |
| IMPLEMENT_SHADER_TYPE (, FParticleSortKeyGenCS, TEXT("/Engine/Private/ParticleSortKeyGen.usf"), TEXT("GenerateParticleSortKeys"), SF_Compute) | |
| int32 | GenerateParticleSortKeys (FRHICommandListImmediate &RHICmdList, FRHIUnorderedAccessView *KeyBufferUAV, FRHIUnorderedAccessView *SortedVertexBufferUAV, FRHITexture *PositionTextureRHI, const TArray< FParticleSimulationSortInfo > &SimulationsToSort, ERHIFeatureLevel::Type FeatureLevel, int32 BatchId) |
| #define PARTICLE_KEY_GEN_THREAD_COUNT 64 |
The number of threads per group used to generate particle keys.
| 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.
| 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. |
| IMPLEMENT_GLOBAL_SHADER_PARAMETER_STRUCT | ( | FParticleKeyGenParameters | , |
| "ParticleKeyGen" | |||
| ) |
Uniform buffer parameters for generating particle sort keys.
| IMPLEMENT_SHADER_TYPE | ( | FParticleSortKeyGenCS | , |
| TEXT("/Engine/Private/ParticleSortKeyGen.usf") | , | ||
| TEXT("GenerateParticleSortKeys") | , | ||
| SF_Compute | |||
| ) |