r.Android.DisableVulkanSM5Support
r.Android.DisableVulkanSM5Support
#Overview
name: r.Android.DisableVulkanSM5Support
The value of this variable can be defined or overridden in .ini config files. 2
.ini config files referencing this setting variable.
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Disable support for vulkan API. (Android Only)\n 0 = Vulkan SM5 API will be used (providing device and project supports it) [default]\n 1 = Vulkan SM5 will be disabled, Vulkan or OpenGL fall back will be used.
It is referenced in 2
C++ source files.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:802, section: [Android DeviceProfile]
- INI Section:
Android DeviceProfile
- Raw value:
1
- Is Array:
False
Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:910, section: [Android_Vulkan_SM5 DeviceProfile]
- INI Section:
Android_Vulkan_SM5 DeviceProfile
- Raw value:
0
- Is Array:
False
#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:4151
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarDisableVulkanSM5Support(
TEXT("r.Android.DisableVulkanSM5Support"),
0,
TEXT("Disable support for vulkan API. (Android Only)\n"
" 0 = Vulkan SM5 API will be used (providing device and project supports it) [default]\n"
" 1 = Vulkan SM5 will be disabled, Vulkan or OpenGL fall back will be used."),
ECVF_ReadOnly);
#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/Android/AndroidPlatformMisc.cpp:2425
Scope (from outer to inner):
file
function bool FAndroidMisc::ShouldUseDesktopVulkan
Source code excerpt:
const bool bVulkanSM5Enabled = IsDesktopVulkanAvailable();
static const auto CVarDisableVulkanSM5 = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Android.DisableVulkanSM5Support"));
const bool bVulkanSM5Disabled = CVarDisableVulkanSM5->GetValueOnAnyThread() == 1;
if (bVulkanSM5Enabled && !bVulkanSM5Disabled)
{
CachedShouldUseDesktopVulkan = 1;
UE_LOG(LogAndroid, Log, TEXT("Vulkan SM5 RHI will be used!"));