r.Shaders.Validation
r.Shaders.Validation
#Overview
name: r.Shaders.Validation
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Enabled shader compiler validation warnings and errors.
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/ShaderCompiler/ShaderCompiler.cpp:2303
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarShadersValidation(
TEXT("r.Shaders.Validation"),
1,
TEXT("Enabled shader compiler validation warnings and errors."),
ECVF_ReadOnly);
static TAutoConsoleVariable<int32> CVarShadersRemoveDeadCode(
TEXT("r.Shaders.RemoveDeadCode"),
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp:8150
Scope (from outer to inner):
file
function void GlobalBeginCompileShader
Source code excerpt:
{
static const auto CVar = IConsoleManager::Get().FindConsoleVariable(TEXT("r.Shaders.Validation"));
if (CVar && CVar->GetInt() == 0)
{
Input.Environment.CompilerFlags.Add(CFLAG_SkipValidation);
}
}