Navigation
Unreal Engine C++ API Reference > Runtime > Engine
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 | |
---|---|---|---|
![]() |
const bool | bUseGPUScene | |
![]() |
const ECommitFlags | CommitFlags | |
![]() |
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 | |
![]() |
const ERHIFeatureLevel::Type | FeatureLevel | |
![]() |
friend | FSceneRenderingBulkObjectAllocator | |
![]() |
TArray< FMaterialRenderProxy *, SceneRenderingAllocator > | MaterialProxiesToDelete | Material proxies that will be deleted at the end of the frame. |
![]() |
TArray< TPair< FMaterialRenderProxy *, bool >, SceneRenderingAllocator > | MaterialProxiesToInvalidate | Material proxies to force uniform expression evaluation. |
![]() |
TArray< const FMaterialRenderProxy *, SceneRenderingAllocator > | MaterialProxiesToUpdate | Material proxies to force uniform expression evaluation. |
![]() |
TArray< TArray< FMeshBatchAndRelevance, SceneRenderingAllocator > *, TInlineAllocator< 2, SceneR... | MeshBatches | Meshes to render |
![]() |
TArray< TPair< FGPUScenePrimitiveCollector *, FMeshBatch * >, SceneRenderingAllocator > | MeshBatchesForGPUScene | List of mesh batches that require GPU scene updates. |
![]() |
TChunkedArray< FMeshBatch, 16384, FConcurrentLinearArrayAllocator > | 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. |
![]() |
FRHICommandList * | RHICmdList | |
![]() |
TArray< FSimpleElementCollector *, TInlineAllocator< 2, SceneRenderingAllocator > > | SimpleElementCollectors | PDIs |
![]() |
TArray< const 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 | ||
![]() |
void | ||
![]() |
void | AddViewMeshArrays
(
const 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 | CacheUniformExpressions
(
FMaterialRenderProxy* Proxy, |
Adds a request to force caching of uniform expressions for a material render proxy. |
![]() |
void | ||
![]() |
void | Commit () |
|
![]() |
void | Finish () |
|
![]() |
|||
![]() |
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. | |
![]() ![]() |
ERHIFeatureLevel::Type | ||
![]() ![]() |
uint32 | GetMeshBatchCount
(
uint32 ViewIndex |
|
![]() ![]() |
uint32 | GetMeshElementCount
(
uint32 ViewIndex |
|
![]() |
FPrimitiveDrawInterface * | Accesses the PDI for drawing lines, sprites, etc. | |
![]() |
FRHICommandList & | Return the current RHI command list used to initialize resources. | |
![]() |
void | ProcessTasks () |
|
![]() |
void | Add a material render proxy that will be cleaned up automatically | |
![]() |
void | SetPrimitive
(
const FPrimitiveSceneProxy* InPrimitiveSceneProxy, |
|
![]() ![]() |
bool | ||
![]() |
void | Start
(
FRHICommandList& RHICmdList, |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
ECommitFlags |