UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CustomDepthRendering.cpp File Reference

Classes

class  FCustomDepthPassMeshProcessor
 

Typedefs

using FNaniteCustomDepthDrawList = TArray< Nanite::FInstanceDraw, SceneRenderingAllocator >
 

Functions

 DECLARE_DWORD_COUNTER_STAT (TEXT("Nanite Custom Depth Instances"), STAT_NaniteCustomDepthInstances, STATGROUP_Nanite)
 
 DECLARE_GPU_DRAWCALL_STAT_NAMED (CustomDepth, TEXT("Custom Depth"))
 
ECustomDepthPassLocation GetCustomDepthPassLocation (EShaderPlatform Platform)
 
bool IsCustomDepthPassWritingStencil ()
 
FRHIDepthStencilStateGetCustomDepthStencilState (bool bWriteCustomStencilValues, EStencilMask StencilWriteMask)
 
FMeshPassProcessorCreateCustomDepthPassProcessor (ERHIFeatureLevel::Type FeatureLevel, const FScene *Scene, const FSceneView *InViewIfDynamicMeshCommand, FMeshPassDrawListContext *InDrawListContext)
 
 REGISTER_MESHPASSPROCESSOR_AND_PSOCOLLECTOR (RegisterCustomDepthPass, CreateCustomDepthPassProcessor, EShadingPath::Deferred, EMeshPass::CustomDepth, EMeshPassFlags::MainView)
 
 REGISTER_MESHPASSPROCESSOR_AND_PSOCOLLECTOR (RegisterMobileCustomDepthPass, CreateCustomDepthPassProcessor, EShadingPath::Mobile, EMeshPass::CustomDepth, EMeshPassFlags::MainView)
 

Typedef Documentation

◆ FNaniteCustomDepthDrawList

Function Documentation

◆ CreateCustomDepthPassProcessor()

FMeshPassProcessor * CreateCustomDepthPassProcessor ( ERHIFeatureLevel::Type  FeatureLevel,
const FScene Scene,
const FSceneView InViewIfDynamicMeshCommand,
FMeshPassDrawListContext InDrawListContext 
)

◆ DECLARE_DWORD_COUNTER_STAT()

DECLARE_DWORD_COUNTER_STAT ( TEXT("Nanite Custom Depth Instances" ,
STAT_NaniteCustomDepthInstances  ,
STATGROUP_Nanite   
)

◆ DECLARE_GPU_DRAWCALL_STAT_NAMED()

DECLARE_GPU_DRAWCALL_STAT_NAMED ( CustomDepth  ,
TEXT("Custom Depth"  
)

◆ GetCustomDepthPassLocation()

ECustomDepthPassLocation GetCustomDepthPassLocation ( EShaderPlatform  Platform)

◆ GetCustomDepthStencilState()

FRHIDepthStencilState * GetCustomDepthStencilState ( bool  bWriteCustomStencilValues,
EStencilMask  StencilWriteMask 
)

◆ IsCustomDepthPassWritingStencil()

bool IsCustomDepthPassWritingStencil ( )

◆ REGISTER_MESHPASSPROCESSOR_AND_PSOCOLLECTOR() [1/2]

◆ REGISTER_MESHPASSPROCESSOR_AND_PSOCOLLECTOR() [2/2]