r.Mobile.AllowDeferredShadingOpenGL
r.Mobile.AllowDeferredShadingOpenGL
#Overview
name: r.Mobile.AllowDeferredShadingOpenGL
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
0: Do not Allow Deferred Shading on OpenGL (default)\n1: Allow Deferred Shading on OpenGL
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/Core/Private/HAL/ConsoleManager.cpp:3480
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarMobileAllowDeferredShadingOpenGL(
TEXT("r.Mobile.AllowDeferredShadingOpenGL"),
0,
TEXT("0: Do not Allow Deferred Shading on OpenGL (default)\n"
"1: Allow Deferred Shading on OpenGL"),
ECVF_RenderThreadSafe | ECVF_ReadOnly);
static TAutoConsoleVariable<int32> CVarMobileEnableStaticAndCSMShadowReceivers(
#Loc: <Workspace>/Engine/Source/Runtime/RenderCore/Private/ReadOnlyCVARCache.cpp:46
Scope (from outer to inner):
file
function bool FReadOnlyCVARCache::MobileDeferredShadingIniValue
Source code excerpt:
{
static FShaderPlatformCachedIniValue<bool> MobileShadingPathIniValue(TEXT("r.Mobile.ShadingPath"));
static TConsoleVariableData<int32>* MobileAllowDeferredShadingOpenGL = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Mobile.AllowDeferredShadingOpenGL"));
// a separate cvar so we can exclude deferred from OpenGL specificaly
const bool bSupportedPlatform = !IsOpenGLPlatform(Platform) || (MobileAllowDeferredShadingOpenGL && MobileAllowDeferredShadingOpenGL->GetValueOnAnyThread() != 0);
return MobileShadingPathIniValue.Get(Platform) && bSupportedPlatform;
}
bool FReadOnlyCVARCache::MobileEnableMovableSpotlightsShadowIniValue(EShaderPlatform Platform)