Encapsulates the gathering of meshes from the various FPrimitiveSceneProxy classes. 更多...
#include <SceneManagement.h>
Public 成员函数 | |
| ENGINE_API void | AddMesh (int32 ViewIndex, FMeshBatch &MeshBatch) |
| Adds a mesh batch to the collector for the specified view so that it can be rendered. | |
| FMeshBatch & | AllocateMesh () |
| Allocates an FMeshBatch that can be safely referenced by the collector (lifetime will be long enough). 更多... | |
| template<typename T , typename... ARGS> | |
| T & | AllocateOneFrameResource (ARGS &&... Args) |
| Allocates a temporary resource that is safe to be referenced by an FMeshBatch added to the collector. | |
| FGlobalDynamicIndexBuffer & | GetDynamicIndexBuffer () |
| Return dynamic index buffer for this collector. | |
| FGlobalDynamicReadBuffer & | GetDynamicReadBuffer () |
| Return dynamic read buffer for this collector. | |
| FGlobalDynamicVertexBuffer & | GetDynamicVertexBuffer () |
| Return dynamic vertex buffer for this collector. | |
| FPrimitiveDrawInterface * | GetPDI (int32 ViewIndex) |
| Accesses the PDI for drawing lines, sprites, etc. | |
| void | RegisterOneFrameMaterialProxy (FMaterialRenderProxy *Proxy) |
| Add a material render proxy that will be cleaned up automatically | |
Protected 属性 | |
| const bool | bUseAsyncTasks |
| This is related to some cvars and FApp stuff and if true means calling code should use async tasks. | |
| FGlobalDynamicIndexBuffer * | DynamicIndexBuffer |
| Dynamic buffer pools. | |
| TArray< TArray< FPrimitiveUniformShaderParameters > *, TInlineAllocator< 2 > > | DynamicPrimitiveShaderDataPerView |
| Tracks dynamic primitive data for upload to GPU Scene for every view, when enabled. | |
| TArray< TArray< FMeshBatchAndRelevance, SceneRenderingAllocator > *, TInlineAllocator< 2 > > | MeshBatches |
| Meshes to render | |
| TChunkedArray< FMeshBatch > | MeshBatchStorage |
| Using TChunkedArray which will never realloc as new elements are added 更多... | |
| TArray< uint16, TInlineAllocator< 2 > > | MeshIdInPrimitivePerView |
| Current Mesh Id In Primitive per view | |
| TArray< int32, TInlineAllocator< 2 > > | NumMeshBatchElementsPerView |
| Number of elements in gathered meshes per view. | |
| TArray< FOneFrameResource *, SceneRenderingAllocator > | OneFrameResources |
| Resources that will be deleted at the end of the frame. | |
| TArray< TFunction< void()> *, SceneRenderingAllocator > | ParallelTasks |
| Tasks to wait for at the end of gathering dynamic mesh elements. | |
| const FPrimitiveSceneProxy * | PrimitiveSceneProxy |
| Current primitive being gathered. | |
| TArray< FSimpleElementCollector *, TInlineAllocator< 2 > > | SimpleElementCollectors |
| PDIs | |
| TArray< FMaterialRenderProxy *, SceneRenderingAllocator > | TemporaryProxies |
| Material proxies that will be deleted at the end of the frame. | |
| TArray< FSceneView *, TInlineAllocator< 2 > > | Views |
| Views being collected for | |
Encapsulates the gathering of meshes from the various FPrimitiveSceneProxy classes.
|
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.
|
protected |
Using TChunkedArray which will never realloc as new elements are added