![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MeshElementCollector.h>
Public Member Functions | |
| ENGINE_API FPrimitiveDrawInterface * | GetPDI (int32 ViewIndex) |
| ENGINE_API FPrimitiveDrawInterface * | GetDebugPDI (int32 ViewIndex) |
| FMeshBatch & | AllocateMesh () |
| FGlobalDynamicIndexBuffer & | GetDynamicIndexBuffer () |
| FGlobalDynamicVertexBuffer & | GetDynamicVertexBuffer () |
| FGlobalDynamicReadBuffer & | GetDynamicReadBuffer () |
| FRHICommandList & | GetRHICommandList () |
| uint32 | GetMeshBatchCount (uint32 ViewIndex) const |
| uint32 | GetMeshElementCount (uint32 ViewIndex) const |
| ENGINE_API void | AddMesh (int32 ViewIndex, FMeshBatch &MeshBatch) |
| ENGINE_API void | RegisterOneFrameMaterialProxy (FMaterialRenderProxy *Proxy) |
| ENGINE_API void | CacheUniformExpressions (FMaterialRenderProxy *Proxy, bool bRecreateUniformBuffer) |
| template<typename T , typename... ARGS> | |
| T & | AllocateOneFrameResource (ARGS &&... Args) |
| bool | ShouldUseTasks () const |
| void | AddTask (TFunction< void()> &&Task) |
| void | AddTask (const TFunction< void()> &Task) |
| void | ProcessTasks () |
| ERHIFeatureLevel::Type | GetFeatureLevel () const |
Protected Types | |
| enum class | ECommitFlags { None = 0 , DeferMaterials = 1 << 0 , DeferGPUScene = 1 << 1 , DeferAll = DeferMaterials | DeferGPUScene } |
Friends | |
| class | FVisibilityTaskData |
| class | FSceneRenderer |
| class | FDeferredShadingSceneRenderer |
| class | FProjectedShadowInfo |
| class | FCardPageRenderData |
| class | FViewFamilyInfo |
| class | FShadowMeshCollector |
| class | FDynamicMeshElementContext |
| class | RuntimeVirtualTexture::FDynamicMeshCollector |
Encapsulates the gathering of meshes from the various FPrimitiveSceneProxy classes.
|
strongprotected |
|
protected |
|
protected |
| void FMeshElementCollector::AddMesh | ( | int32 | ViewIndex, |
| FMeshBatch & | MeshBatch | ||
| ) |
Adds a mesh batch to the collector for the specified view so that it can be rendered.
|
protected |
|
inline |
Allocates an FMeshBatch that can be safely referenced by the collector (lifetime will be long enough). Returns a reference that will not be invalidated due to further AllocateMesh() calls.
|
inline |
Allocates a temporary resource that is safe to be referenced by an FMeshBatch added to the collector.
| void FMeshElementCollector::CacheUniformExpressions | ( | FMaterialRenderProxy * | Proxy, |
| bool | bRecreateUniformBuffer | ||
| ) |
Adds a request to force caching of uniform expressions for a material render proxy.
|
protected |
|
protected |
|
protected |
|
protected |
| ENGINE_API FPrimitiveDrawInterface * FMeshElementCollector::GetDebugPDI | ( | int32 | ViewIndex | ) |
|
inline |
Return dynamic index buffer for this collector.
|
inline |
Return dynamic read buffer for this collector.
|
inline |
Return dynamic vertex buffer for this collector.
|
inline |
| FPrimitiveDrawInterface * FMeshElementCollector::GetPDI | ( | int32 | ViewIndex | ) |
Accesses the PDI for drawing lines, sprites, etc.
|
inline |
Return the current RHI command list used to initialize resources.
|
inline |
| void FMeshElementCollector::RegisterOneFrameMaterialProxy | ( | FMaterialRenderProxy * | Proxy | ) |
Add a material render proxy that will be cleaned up automatically
|
protected |
|
inline |
|
protected |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
Dynamic buffer pools.
|
protected |
Tracks dynamic primitive data for upload to GPU Scene for every view, when enabled.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Material proxies that will be deleted at the end of the frame.
|
protected |
Material proxies to force uniform expression evaluation.
|
protected |
Material proxies to force uniform expression evaluation.
|
protected |
Meshes to render
|
protected |
List of mesh batches that require GPU scene updates.
|
protected |
Using TChunkedArray which will never realloc as new elements are added
|
protected |
Current Mesh Id In Primitive per view
|
protected |
Number of elements in gathered meshes per view.
|
protected |
Resources that will be deleted at the end of the frame.
|
protected |
Current primitive being gathered.
|
protected |
|
protected |
PDIs
|
protected |
Views being collected for