UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDebugViewModeInterface Class Referenceabstract

#include <DebugViewModeInterface.h>

Classes

struct  FRenderState
 

Public Member Functions

 FDebugViewModeInterface ()
 
virtual ~FDebugViewModeInterface ()
 
virtual void AddShaderTypes (ERHIFeatureLevel::Type InFeatureLevel, const FVertexFactoryType *InVertexFactoryType, FMaterialShaderTypes &OutShaderTypes) const =0
 
virtual ENGINE_API void SetDrawRenderState (EDebugViewShaderMode DebugViewMode, EBlendMode BlendMode, FRenderState &DrawRenderState, bool bHasDepthPrepassForMaskedMaterial) const
 
virtual void GetDebugViewModeShaderBindings (const FDebugViewModePS &Shader, const FPrimitiveSceneProxy *PrimitiveSceneProxy, const FMaterialRenderProxy &MaterialRenderProxy, const FMaterial &Material, EDebugViewShaderMode DebugViewMode, const FVector &ViewOrigin, int32 VisualizeLODIndex, const FColor &SkinCacheDebugColor, int32 VisualizeElementIndex, int32 NumVSInstructions, int32 NumPSInstructions, int32 LWCComplexityVS, int32 LWCComplexityPS, int32 ViewModeParam, FName ViewModeParamName, FMeshDrawSingleShaderBindings &ShaderBindings) const
 

Static Public Member Functions

static const FDebugViewModeInterfaceGetInterface (EDebugViewShaderMode InDebugViewMode)
 
static ENGINE_API void SetInterface (FDebugViewModeInterface *Interface)
 
static ENGINE_API bool AllowFallbackToDefaultMaterial (const FMaterial *InMaterial)
 
static ENGINE_API bool AllowFallbackToDefaultMaterial (bool bHasVertexPositionOffsetConnected, bool bHasPixelDepthOffsetConnected)
 

Constructor & Destructor Documentation

◆ FDebugViewModeInterface()

FDebugViewModeInterface::FDebugViewModeInterface ( )
inline

◆ ~FDebugViewModeInterface()

virtual FDebugViewModeInterface::~FDebugViewModeInterface ( )
inlinevirtual

Member Function Documentation

◆ AddShaderTypes()

virtual void FDebugViewModeInterface::AddShaderTypes ( ERHIFeatureLevel::Type  InFeatureLevel,
const FVertexFactoryType InVertexFactoryType,
FMaterialShaderTypes OutShaderTypes 
) const
pure virtual

◆ AllowFallbackToDefaultMaterial() [1/2]

static ENGINE_API bool FDebugViewModeInterface::AllowFallbackToDefaultMaterial ( bool  bHasVertexPositionOffsetConnected,
bool  bHasPixelDepthOffsetConnected 
)
static

◆ AllowFallbackToDefaultMaterial() [2/2]

static ENGINE_API bool FDebugViewModeInterface::AllowFallbackToDefaultMaterial ( const FMaterial InMaterial)
static

Whether this material can be substituted by the default material.

◆ GetDebugViewModeShaderBindings()

virtual void FDebugViewModeInterface::GetDebugViewModeShaderBindings ( const FDebugViewModePS Shader,
const FPrimitiveSceneProxy PrimitiveSceneProxy,
const FMaterialRenderProxy MaterialRenderProxy,
const FMaterial Material,
EDebugViewShaderMode  DebugViewMode,
const FVector ViewOrigin,
int32  VisualizeLODIndex,
const FColor SkinCacheDebugColor,
int32  VisualizeElementIndex,
int32  NumVSInstructions,
int32  NumPSInstructions,
int32  LWCComplexityVS,
int32  LWCComplexityPS,
int32  ViewModeParam,
FName  ViewModeParamName,
FMeshDrawSingleShaderBindings ShaderBindings 
) const
inlinevirtual

◆ GetInterface()

static const FDebugViewModeInterface * FDebugViewModeInterface::GetInterface ( EDebugViewShaderMode  InDebugViewMode)
inlinestatic

Return the interface object for the given viewmode.

◆ SetDrawRenderState()

virtual ENGINE_API void FDebugViewModeInterface::SetDrawRenderState ( EDebugViewShaderMode  DebugViewMode,
EBlendMode  BlendMode,
FRenderState DrawRenderState,
bool  bHasDepthPrepassForMaskedMaterial 
) const
virtual

◆ SetInterface()

static ENGINE_API void FDebugViewModeInterface::SetInterface ( FDebugViewModeInterface Interface)
static

Return the interface object for the given viewmode.


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