r.VRS.Enable
r.VRS.Enable
#Overview
name: r.VRS.Enable
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Toggle to enable Variable Rate Shading.
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/RHI/Private/RHI.cpp:1165
Scope: file
Source code excerpt:
static FAutoConsoleVariableRef CVarEnableVariableRateShading(
TEXT("r.VRS.Enable"),
GRHIVariableRateShadingEnabled,
TEXT("Toggle to enable Variable Rate Shading."),
ECVF_RenderThreadSafe);
static FAutoConsoleVariableRef CVarEnableAttachmentVariableRateShading(
TEXT("r.VRS.EnableImage"),
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/VariableRateShading/VariableRateShadingImageManager.cpp:327
Scope: file
Source code excerpt:
bool FVariableRateShadingImageManager::IsHardwareVRSEnabled()
{
// Currently corresponds to r.VRS.Enable and r.VRS.EnableImage
return GRHIVariableRateShadingEnabled && GRHIAttachmentVariableRateShadingEnabled;
}
bool FVariableRateShadingImageManager::IsSoftwareVRSEnabled()
{
return CVarVRSSoftwareImage.GetValueOnRenderThread() > 0;