r.Nanite.Tessellation
r.Nanite.Tessellation
#Overview
name: r.Nanite.Tessellation
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Whether to enable (highly experimental) runtime tessellation.
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/Renderer/Private/Nanite/NaniteCullRaster.cpp:85
Scope: file
Source code excerpt:
// NOTE: Heavily WIP and experimental - do not use!
static TAutoConsoleVariable<int32> CVarNaniteTessellation(
TEXT("r.Nanite.Tessellation"),
0,
TEXT("Whether to enable (highly experimental) runtime tessellation."),
FConsoleVariableDelegate::CreateLambda([](IConsoleVariable* InVariable)
{
FGlobalComponentRecreateRenderStateContext Context;
}),
#Loc: <Workspace>/Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp:1322
Scope (from outer to inner):
file
function bool UseNaniteTessellation
Source code excerpt:
bool UseNaniteTessellation()
{
static const auto TessellationVar = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Nanite.Tessellation"));
const bool bTessellation = (TessellationVar && TessellationVar->GetValueOnAnyThread() != 0);
return bTessellation && NaniteTessellationSupported();
}
bool DoesRuntimeSupportNanite(EShaderPlatform ShaderPlatform, bool bCheckForAtomicSupport, bool bCheckForProjectSetting)
{