r.Android.DisableASTCSupport
r.Android.DisableASTCSupport
#Overview
name: r.Android.DisableASTCSupport
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Disable support for ASTC Texture compression if OpenGL driver supports it. (Android Only)\n 0 = ASTC texture compression will be used if driver supports it [default]\n 1 = ASTC texture compression will not be used.
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:4167
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarDisableAndroidGLASTCSupport(
TEXT("r.Android.DisableASTCSupport"),
0,
TEXT("Disable support for ASTC Texture compression if OpenGL driver supports it. (Android Only)\n"
" 0 = ASTC texture compression will be used if driver supports it [default]\n"
" 1 = ASTC texture compression will not be used."),
ECVF_ReadOnly);
#Loc: <Workspace>/Engine/Source/Runtime/OpenGLDrv/Private/Android/AndroidOpenGL.cpp:934
Scope (from outer to inner):
file
function void FAndroidOpenGL::ProcessExtensions
Source code excerpt:
// Disable ASTC if requested by device profile
static const auto CVarDisableASTC = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Android.DisableASTCSupport"));
if (bSupportsASTC && CVarDisableASTC->GetValueOnAnyThread())
{
bSupportsASTC = false;
bSupportsASTCHDR = false;
FAndroidGPUInfo::Get().RemoveTargetPlatform(TEXT("Android_ASTC"));
UE_LOG(LogRHI, Log, TEXT("ASTC was disabled via r.OpenGL.DisableASTCSupport"));