![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SimpleMeshDrawCommandPass.h>
Public Member Functions | |
| RENDERER_API | FSimpleMeshDrawCommandPass (const FSceneView &View, FInstanceCullingManager *InstanceCullingManager, bool bEnableStereo=false) |
| RENDERER_API void | BuildRenderingCommands (FRDGBuilder &GraphBuilder, const FSceneView &View, const FGPUScene &GPUScene, FInstanceCullingDrawParams &OutInstanceCullingDrawParams) |
| RENDERER_API void | BuildRenderingCommands (FRDGBuilder &GraphBuilder, const FSceneView &View, const FScene &Scene, FInstanceCullingDrawParams &OutInstanceCullingDrawParams) |
| RENDERER_API void | SubmitDraw (FRHICommandList &RHICmdList, const FInstanceCullingDrawParams &InstanceCullingDrawParams) const |
| FDynamicPassMeshDrawListContext * | GetDynamicPassMeshDrawListContext () |
| EInstanceCullingMode | GetInstanceCullingMode () const |
Similar to the parallel one, but intended for use with simpler tasks where the overhead and complexity of parallel is not justified.
| FSimpleMeshDrawCommandPass::FSimpleMeshDrawCommandPass | ( | const FSceneView & | View, |
| FInstanceCullingManager * | InstanceCullingManager, | ||
| bool | bEnableStereo = false |
||
| ) |
bEnableStereo - if true will extract the stereo information from the View and set up two ViewIds for the instance culling, as well as use InstanceFactor = 2 for legacy drawing.
| void FSimpleMeshDrawCommandPass::BuildRenderingCommands | ( | FRDGBuilder & | GraphBuilder, |
| const FSceneView & | View, | ||
| const FGPUScene & | GPUScene, | ||
| FInstanceCullingDrawParams & | OutInstanceCullingDrawParams | ||
| ) |
Run post-instance culling job to create the render commands and instance ID lists and optionally vertex instance data. Needs to happen after DispatchPassSetup and before DispatchDraw, but not before global instance culling has been done.
| void FSimpleMeshDrawCommandPass::BuildRenderingCommands | ( | FRDGBuilder & | GraphBuilder, |
| const FSceneView & | View, | ||
| const FScene & | Scene, | ||
| FInstanceCullingDrawParams & | OutInstanceCullingDrawParams | ||
| ) |
|
inline |
|
inline |
| void FSimpleMeshDrawCommandPass::SubmitDraw | ( | FRHICommandList & | RHICmdList, |
| const FInstanceCullingDrawParams & | InstanceCullingDrawParams | ||
| ) | const |