r.DistanceFields.SupportEvenIfHardwareRayTracingSupported
r.DistanceFields.SupportEvenIfHardwareRayTracingSupported
#Overview
name: r.DistanceFields.SupportEvenIfHardwareRayTracingSupported
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Whether to support distance fields when hardware ray tracing is supported.\nSetting it to 0 will skip distance field overhead when hardware ray tracing is supported.
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/Engine/Private/DistanceFieldAtlas.cpp:58
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarDistFieldSupportWhenHardwareRayTracingEnabled(
TEXT("r.DistanceFields.SupportEvenIfHardwareRayTracingSupported"),
1,
TEXT("Whether to support distance fields when hardware ray tracing is supported.\n")
TEXT("Setting it to 0 will skip distance field overhead when hardware ray tracing is supported."),
ECVF_ReadOnly);
static TAutoConsoleVariable<int32> CVarDistFieldRes(
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/SceneManagement.cpp:53
Scope (from outer to inner):
file
function bool DoesProjectSupportDistanceFields
Source code excerpt:
{
static const auto CVarGenerateDF = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.GenerateMeshDistanceFields"));
static const auto CVarDFIfNoHWRT = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.DistanceFields.SupportEvenIfHardwareRayTracingSupported"));
return DoesPlatformSupportDistanceFields(GMaxRHIShaderPlatform)
&& CVarGenerateDF->GetValueOnAnyThread() != 0
&& (CVarDFIfNoHWRT->GetValueOnAnyThread() != 0 || !IsRayTracingAllowed());
}