r.Mobile.AllowPixelDepthOffset

r.Mobile.AllowPixelDepthOffset

#Overview

name: r.Mobile.AllowPixelDepthOffset

This variable is created as a Console Variable (cvar).

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:3552

Scope: file

Source code excerpt:


static TAutoConsoleVariable<int32> CVarMobileAllowPixelDepthOffset(
	TEXT("r.Mobile.AllowPixelDepthOffset"),
	1,
	TEXT("Whether to allow 'Pixel Depth Offset' in materials for Mobile feature level. Depth modification in pixel shaders may reduce GPU performance"),
	ECVF_ReadOnly | ECVF_RenderThreadSafe
);

static TAutoConsoleVariable<int32> CVarMobileAllowPerPixelShadingModels(

#Loc: <Workspace>/Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp:523

Scope (from outer to inner):

file
function     bool AllowPixelDepthOffset

Source code excerpt:

	if (IsMobilePlatform(Platform))
	{
		static const auto CVar = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Mobile.AllowPixelDepthOffset"));
		return CVar->GetValueOnAnyThread() != 0;
	}
	return true;
}

RENDERCORE_API bool AllowPerPixelShadingModels(const FStaticShaderPlatform Platform)