Navigation
API > API/Runtime > API/Runtime/Engine
Encapsulates the gathering of meshes from the various FPrimitiveSceneProxy classes.
| Name | FMeshElementCollector |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/MeshElementCollector.h |
| Include Path | #include "MeshElementCollector.h" |
Syntax
class FMeshElementCollector
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshElementCollector
(
ERHIFeatureLevel::Type InFeatureLevel, |
MeshElementCollector.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMeshElementCollector() |
MeshElementCollector.h |
Enums
Protected
| Name | Remarks |
|---|---|
| ECommitFlags |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddMesh
(
int32 ViewIndex, |
Adds a mesh batch to the collector for the specified view so that it can be rendered. | MeshElementCollector.h | |
| MeshElementCollector.h | |||
| MeshElementCollector.h | |||
FMeshBatch & AllocateMesh () |
Allocates an FMeshBatch that can be safely referenced by the collector (lifetime will be long enough). | MeshElementCollector.h | |
T & AllocateOneFrameResource
(
ARGS&&... Args |
Allocates a temporary resource that is safe to be referenced by an FMeshBatch added to the collector. | MeshElementCollector.h | |
void CacheUniformExpressions
(
FMaterialRenderProxy* Proxy, |
Adds a request to force caching of uniform expressions for a material render proxy. | MeshElementCollector.h | |
FPrimitiveDrawInterface * GetDebugPDI
(
int32 ViewIndex |
MeshElementCollector.h | ||
FGlobalDynamicIndexBuffer & GetDynamicIndexBuffer() |
Return dynamic index buffer for this collector. | MeshElementCollector.h | |
FGlobalDynamicReadBuffer & GetDynamicReadBuffer() |
Return dynamic read buffer for this collector. | MeshElementCollector.h | |
FGlobalDynamicVertexBuffer & GetDynamicVertexBuffer() |
Return dynamic vertex buffer for this collector. | MeshElementCollector.h | |
ERHIFeatureLevel::Type GetFeatureLevel() |
MeshElementCollector.h | ||
uint32 GetMeshBatchCount
(
uint32 ViewIndex |
MeshElementCollector.h | ||
uint32 GetMeshElementCount
(
uint32 ViewIndex |
MeshElementCollector.h | ||
FPrimitiveDrawInterface * GetPDI
(
int32 ViewIndex |
Accesses the PDI for drawing lines, sprites, etc. | MeshElementCollector.h | |
FRHICommandList & GetRHICommandList() |
Return the current RHI command list used to initialize resources. | MeshElementCollector.h | |
void ProcessTasks() |
MeshElementCollector.h | ||
void RegisterOneFrameMaterialProxy
(
FMaterialRenderProxy* Proxy |
Add a material render proxy that will be cleaned up automatically | MeshElementCollector.h | |
bool ShouldUseTasks() |
MeshElementCollector.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddViewMeshArrays
(
const FSceneView* InView, |
MeshElementCollector.h | ||
void ClearViewMeshArrays() |
MeshElementCollector.h | ||
void Commit() |
MeshElementCollector.h | ||
void Finish() |
MeshElementCollector.h | ||
void SetPrimitive
(
const FPrimitiveSceneProxy* InPrimitiveSceneProxy, |
MeshElementCollector.h | ||
void Start
(
FRHICommandList& RHICmdList, |
MeshElementCollector.h |