r.Nanite.AllowSplineMeshes

r.Nanite.AllowSplineMeshes

#Overview

name: r.Nanite.AllowSplineMeshes

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/Engine/Private/Rendering/NaniteResources.cpp:88

Scope: file

Source code excerpt:


static TAutoConsoleVariable<int32> CVarNaniteAllowSplineMeshes(
	TEXT("r.Nanite.AllowSplineMeshes"),
	1,
	TEXT("Whether to enable support for Nanite spline meshes"),
	ECVF_RenderThreadSafe | ECVF_ReadOnly);

int32 GNaniteAllowMaskedMaterials = 1;
FAutoConsoleVariableRef CVarNaniteAllowMaskedMaterials(

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

Scope (from outer to inner):

file
function     bool NaniteSplineMeshesSupported

Source code excerpt:

bool NaniteSplineMeshesSupported()
{
	static const auto AllowSplineMeshes = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Nanite.AllowSplineMeshes"));
	static const bool bAllowSplineMeshes = (AllowSplineMeshes && AllowSplineMeshes->GetValueOnAnyThread() != 0);
	return bAllowSplineMeshes;
}

bool UseNaniteTessellation()
{