Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FMeshElementCollector
- FRayTracingMeshResourceCollector
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include | #include "SceneManagement.h" |
Syntax
class FMeshElementCollector
Remarks
Encapsulates the gathering of meshes from the various FPrimitiveSceneProxy classes.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FSimpleElementCollector *, TInlineAllocator< 2, SceneRenderingAllocator > > | DebugSimpleElementCollectors | ||
| FGlobalDynamicIndexBuffer * | DynamicIndexBuffer | Dynamic buffer pools. | |
| TArray< FGPUScenePrimitiveCollector *, TInlineAllocator< 2, SceneRenderingAllocator > > | DynamicPrimitiveCollectorPerView | Tracks dynamic primitive data for upload to GPU Scene for every view, when enabled. | |
| FGlobalDynamicReadBuffer * | DynamicReadBuffer | ||
| FGlobalDynamicVertexBuffer * | DynamicVertexBuffer | ||
| ERHIFeatureLevel::Type | FeatureLevel | ||
| TArray< TArray< FMeshBatchAndRelevance, SceneRenderingAllocator > *, TInlineAllocator< 2, SceneR... | MeshBatches | Meshes to render | |
| TChunkedArray< FMeshBatch > | MeshBatchStorage | Using TChunkedArray which will never realloc as new elements are added | |
| TArray< uint16, TInlineAllocator< 2, SceneRenderingAllocator > > | MeshIdInPrimitivePerView | Current Mesh Id In Primitive per view | |
| TArray< int32, TInlineAllocator< 2, SceneRenderingAllocator > > | NumMeshBatchElementsPerView | Number of elements in gathered meshes per view. | |
| FSceneRenderingBulkObjectAllocator & | OneFrameResources | Resources that will be deleted at the end of the frame. | |
| const FPrimitiveSceneProxy * | PrimitiveSceneProxy | Current primitive being gathered. | |
| TArray< FSimpleElementCollector *, TInlineAllocator< 2, SceneRenderingAllocator > > | SimpleElementCollectors | PDIs | |
| TArray< FMaterialRenderProxy *, SceneRenderingAllocator > | TemporaryProxies | Material proxies that will be deleted at the end of the frame. | |
| TArray< FSceneView *, TInlineAllocator< 2, SceneRenderingAllocator > > | Views | Views being collected for |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMeshElementCollector
(
ERHIFeatureLevel::Type InFeatureLevel, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMesh
(
int32 ViewIndex, |
Adds a mesh batch to the collector for the specified view so that it can be rendered. | |
| void | AddViewMeshArrays
(
FSceneView* InView, |
||
| FMeshBatch & | AllocateMesh () |
Allocates an FMeshBatch that can be safely referenced by the collector (lifetime will be long enough). | |
| T & | AllocateOneFrameResource
(
ARGS&&... Args |
Allocates a temporary resource that is safe to be referenced by an FMeshBatch added to the collector. | |
| void | |||
| void | |||
| FPrimitiveDrawInterface * | GetDebugPDI
(
int32 ViewIndex |
||
| FGlobalDynamicIndexBuffer & | Return dynamic index buffer for this collector. | ||
| FGlobalDynamicReadBuffer & | Return dynamic read buffer for this collector. | ||
| FGlobalDynamicVertexBuffer & | Return dynamic vertex buffer for this collector. | ||
| FORCEINLINEERHIFeatureLevel::Type | |||
| uint32 | GetMeshBatchCount
(
uint32 ViewIndex |
||
| uint32 | GetMeshElementCount
(
uint32 ViewIndex |
||
| FPrimitiveDrawInterface * | GetPDI
(
int32 ViewIndex |
Accesses the PDI for drawing lines, sprites, etc. | |
| void | Add a material render proxy that will be cleaned up automatically | ||
| void | SetPrimitive
(
const FPrimitiveSceneProxy* InPrimitiveSceneProxy, |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FORCEINLINEvoid | AddTask has been deprecated. | ||
| FORCEINLINEvoid | AddTask has been deprecated. | ||
| void | ProcessTasks () |
ProcessTasks has been deprecated. | |
| FORCEINLINEbool | ShouldUseTasks has been deprecated. |