r.D3D12.DRED
r.D3D12.DRED
#Overview
name: r.D3D12.DRED
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Enable DRED GPU Crash debugging mode to track the current GPU state and logs information what operations the GPU executed last.Has GPU overhead but gives the most information on the current GPU state when it crashes or hangs.\n
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/D3D12RHI/Private/D3D12Adapter.cpp:107
Scope: file
Source code excerpt:
static FAutoConsoleVariableRef CVarD3D12EnableDRED(
TEXT("r.D3D12.DRED"),
GD3D12EnableDRED,
TEXT("Enable DRED GPU Crash debugging mode to track the current GPU state and logs information what operations the GPU executed last.")
TEXT("Has GPU overhead but gives the most information on the current GPU state when it crashes or hangs.\n"),
ECVF_RenderThreadSafe | ECVF_ReadOnly);
static FAutoConsoleVariableRef CVarD3D12EnableLightweightDRED(
#Loc: <Workspace>/Engine/Source/Runtime/D3D12RHI/Private/D3D12Adapter.cpp:1435
Scope (from outer to inner):
file
function void FD3D12Adapter::SetupGPUCrashDebuggingModesCommon
Source code excerpt:
ParseCVar(TEXT("r.D3D12.BreadCrumbs"), ED3D12GPUCrashDebuggingModes::BreadCrumbs);
ParseCVar(TEXT("r.D3D12.NvAfterMath"), ED3D12GPUCrashDebuggingModes::NvAftermath);
ParseCVar(TEXT("r.D3D12.DRED"), ED3D12GPUCrashDebuggingModes::DRED);
// Enable/disable specific crash debugging modes if requested via command line argument
const auto ParseCommandLine = [this](const TCHAR* CommandLineArgument, ED3D12GPUCrashDebuggingModes DebuggingMode)
{
int32 Value = 0;
if (FParse::Value(FCommandLine::Get(), *FString::Printf(TEXT("%s="), CommandLineArgument), Value))