r.Mobile.AllowPerPixelShadingModels
r.Mobile.AllowPerPixelShadingModels
#Overview
name: r.Mobile.AllowPerPixelShadingModels
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Whether to allow \'Per-Pixel Shader Models (From Material Expression)\' in materials for Mobile feature level.
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:3559
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarMobileAllowPerPixelShadingModels(
TEXT("r.Mobile.AllowPerPixelShadingModels"),
1,
TEXT("Whether to allow 'Per-Pixel Shader Models (From Material Expression)' in materials for Mobile feature level."),
ECVF_ReadOnly | ECVF_RenderThreadSafe
);
static TAutoConsoleVariable<int32> CVarMobileEnabledShadingModelsMask(
#Loc: <Workspace>/Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp:533
Scope (from outer to inner):
file
function bool AllowPerPixelShadingModels
Source code excerpt:
if (IsMobilePlatform(Platform))
{
static const auto CVar = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Mobile.AllowPerPixelShadingModels"));
return CVar->GetValueOnAnyThread() != 0;
}
return true;
}
RENDERCORE_API uint32 GetPlatformShadingModelsMask(const FStaticShaderPlatform Platform)