UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSimpleMeshDrawCommandPass Class Reference

#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
 
FDynamicPassMeshDrawListContextGetDynamicPassMeshDrawListContext ()
 
EInstanceCullingMode GetInstanceCullingMode () const
 

Detailed Description

Similar to the parallel one, but intended for use with simpler tasks where the overhead and complexity of parallel is not justified.

Constructor & Destructor Documentation

◆ FSimpleMeshDrawCommandPass()

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.

Member Function Documentation

◆ BuildRenderingCommands() [1/2]

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.

◆ BuildRenderingCommands() [2/2]

void FSimpleMeshDrawCommandPass::BuildRenderingCommands ( FRDGBuilder GraphBuilder,
const FSceneView View,
const FScene Scene,
FInstanceCullingDrawParams OutInstanceCullingDrawParams 
)

◆ GetDynamicPassMeshDrawListContext()

FDynamicPassMeshDrawListContext * FSimpleMeshDrawCommandPass::GetDynamicPassMeshDrawListContext ( )
inline

◆ GetInstanceCullingMode()

EInstanceCullingMode FSimpleMeshDrawCommandPass::GetInstanceCullingMode ( ) const
inline

◆ SubmitDraw()

void FSimpleMeshDrawCommandPass::SubmitDraw ( FRHICommandList RHICmdList,
const FInstanceCullingDrawParams InstanceCullingDrawParams 
) const

The documentation for this class was generated from the following files: