r.Mobile.ShadingModelsMask
r.Mobile.ShadingModelsMask
#Overview
name: r.Mobile.ShadingModelsMask
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
The mask that indicates which shading models are enabled on mobile platforms.
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:3566
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarMobileEnabledShadingModelsMask(
TEXT("r.Mobile.ShadingModelsMask"),
0xFFFFFFFF,
TEXT("The mask that indicates which shading models are enabled on mobile platforms."),
ECVF_ReadOnly | ECVF_RenderThreadSafe
);
static TAutoConsoleVariable<int32> CVarMobileForwardEnableLocalLights(
#Loc: <Workspace>/Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp:543
Scope (from outer to inner):
file
function uint32 GetPlatformShadingModelsMask
Source code excerpt:
if (IsMobilePlatform(Platform))
{
static const auto CVar = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Mobile.ShadingModelsMask"));
return CVar->GetValueOnAnyThread();
}
return 0xFFFFFFFF;
}
typedef TBitArray<TInlineAllocator<EShaderPlatform::SP_NumPlatforms / 8>> ShaderPlatformMaskType;