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

Classes

struct  FD3D11ResourceBinder< ShaderFrequency >
 
struct  FRTVDesc
 
struct  FD3D11PlatformCommandList
 

Namespaces

namespace  FD3DRHIUtil
 

Macros

#define DECLARE_ISBOUNDSHADER(ShaderType)
 
#define VALIDATE_BOUND_SHADER(s)
 

Functions

FRTVDesc GetRenderTargetViewDesc (ID3D11RenderTargetView *RenderTargetView)
 
template<EShaderFrequency ShaderFrequencyT>
void FD3DRHIUtil::CommitConstants (FD3D11ConstantBuffer *InConstantBuffer, FD3D11StateCache &StateCache, bool bDiscardSharedConstants)
 

Variables

int32 GDX11ReduceRTVRebinds = 1
 
int32 GLogDX11RTRebinds = 0
 
FThreadSafeCounter GDX11RTRebind
 
FThreadSafeCounter GDX11CommitGraphicsResourceTables
 

Macro Definition Documentation

◆ DECLARE_ISBOUNDSHADER

#define DECLARE_ISBOUNDSHADER (   ShaderType)
Value:
inline void ValidateBoundShader(FD3D11StateCache& InStateCache, FRHI##ShaderType* ShaderType##RHI) \
{ \
ID3D11##ShaderType* CachedShader; \
InStateCache.Get##ShaderType(&CachedShader); \
FD3D11##ShaderType* ShaderType = FD3D11DynamicRHI::ResourceCast(ShaderType##RHI); \
ensureMsgf(CachedShader == ShaderType->Resource, TEXT("Parameters are being set for a %s which is not currently bound"), TEXT( #ShaderType )); \
if (CachedShader) { CachedShader->Release(); } \
}
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void ValidateBoundShader(FD3D12StateCache &InStateCache, FRHIShader *InShaderRHI)
Definition D3D12Commands.cpp:17
static FORCEINLINE TD3D11ResourceTraits< TRHIType >::TConcreteType * ResourceCast(TRHIType *Resource)
Definition D3D11RHIPrivate.h:390
Definition D3D11StateCachePrivate.h:59
Definition RHI.Build.cs:8

◆ VALIDATE_BOUND_SHADER

#define VALIDATE_BOUND_SHADER (   s)

Function Documentation

◆ GetRenderTargetViewDesc()

FRTVDesc GetRenderTargetViewDesc ( ID3D11RenderTargetView RenderTargetView)

Variable Documentation

◆ GDX11CommitGraphicsResourceTables

FThreadSafeCounter GDX11CommitGraphicsResourceTables

◆ GDX11ReduceRTVRebinds

int32 GDX11ReduceRTVRebinds = 1

◆ GDX11RTRebind

FThreadSafeCounter GDX11RTRebind

◆ GLogDX11RTRebinds

int32 GLogDX11RTRebinds = 0