r.Mobile.EnableCloth
r.Mobile.EnableCloth
#Overview
name: r.Mobile.EnableCloth
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
If enabled, compile cloth shader permutations and render simulated cloth on mobile platforms and Mobile mode on PC. Cannot be changed at runtime
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/GPUSkinVertexFactory.cpp:70
Scope: file
Source code excerpt:
static TAutoConsoleVariable<bool> CVarMobileEnableCloth(
TEXT("r.Mobile.EnableCloth"),
true,
TEXT("If enabled, compile cloth shader permutations and render simulated cloth on mobile platforms and Mobile mode on PC. Cannot be changed at runtime"),
ECVF_ReadOnly);
IMPLEMENT_GLOBAL_SHADER_PARAMETER_STRUCT(FAPEXClothUniformShaderParameters,"APEXClothParam");
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/GPUSkinVertexFactory.cpp:949
Scope (from outer to inner):
file
function bool FGPUBaseSkinAPEXClothVertexFactory::IsClothEnabled
Source code excerpt:
bool FGPUBaseSkinAPEXClothVertexFactory::IsClothEnabled(EShaderPlatform Platform)
{
static FShaderPlatformCachedIniValue<bool> MobileEnableClothIniValue(TEXT("r.Mobile.EnableCloth"));
const bool bEnableClothOnMobile = (MobileEnableClothIniValue.Get(Platform) != 0);
const bool bIsMobile = IsMobilePlatform(Platform);
return !bIsMobile || bEnableClothOnMobile;
}