![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GPUScene.h>
Public Member Functions | |
| FGPUScenePrimitiveCollector (FGPUSceneDynamicContext *InGPUSceneDynamicContext=nullptr) | |
| virtual void | Add (const FMeshBatchDynamicPrimitiveData *MeshBatchData, const FPrimitiveUniformShaderParameters &PrimitiveShaderParams, uint32 NumInstances, uint32 &OutPrimitiveIndex, uint32 &OutInstanceSceneDataOffset) |
| RENDERER_API void | Commit () |
| FORCEINLINE const TRange< int32 > & | GetPrimitiveIdRange () const |
| FORCEINLINE int32 | GetInstanceSceneDataOffset () const |
| FORCEINLINE int32 | GetInstancePayloadDataOffset () const |
| int32 | Num () const |
| int32 | NumInstances () const |
| int32 | NumPayloadDataSlots () const |
| const FPrimitiveUniformShaderParameters * | GetPrimitiveShaderParameters (int32 PrimitiveId) const |
Friends | |
| class | FGPUScene |
| class | FGPUSceneDynamicContext |
| struct | FUploadDataSourceAdapterDynamicPrimitives |
Used to manage dynamic primitives for a given view, during InitViews the data is collected and then can be committed to the GPU-Scene. Once committed the range of indices are valid and can be used to calculate the PrimitiveIds.
|
inline |
|
virtual |
Add data for a primitive with a number of instances. May be called outside (before) a FGPUScene::Begin/EndRender block. Note: needs to be virtual to prevent a linker error
| void FGPUScenePrimitiveCollector::Commit | ( | ) |
Allocates the range in GPUScene and queues the data for upload. After this is called no more calls to Add are allowed. Only allowed inside a FGPUScene::Begin/EndRender block.
|
inline |
|
inline |
|
inline |
Get the range of Primitive IDs in GPU-Scene for this batch of dynamic primitives, only valid to call after commit.
| const FPrimitiveUniformShaderParameters * FGPUScenePrimitiveCollector::GetPrimitiveShaderParameters | ( | int32 | PrimitiveId | ) | const |
|
inline |
|
inline |
|
inline |
|
friend |