r.VRS.EnableImage
r.VRS.EnableImage
#Overview
name: r.VRS.EnableImage
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Toggle to enable image-based 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:1171
Scope: file
Source code excerpt:
static FAutoConsoleVariableRef CVarEnableAttachmentVariableRateShading(
TEXT("r.VRS.EnableImage"),
GRHIAttachmentVariableRateShadingEnabled,
TEXT("Toggle to enable image-based Variable Rate Shading."),
ECVF_RenderThreadSafe);
FString GRHIBindlessResourceConfiguration = TEXT("Disabled");
#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;