UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NaniteShared.h File Reference

Go to the source code of this file.

Classes

struct  Nanite::FPackedView
 
class  Nanite::FPackedViewArray
 
struct  Nanite::FPackedViewParams
 
struct  Nanite::FVisualizeResult
 
struct  Nanite::FBinningData
 
class  Nanite::FGlobalResources
 
struct  Nanite::FGlobalResources::PassBuffers
 
class  FNaniteGlobalShader
 
class  FNaniteMaterialShader
 
struct  FNaniteRasterPipeline
 
struct  FNaniteRasterBin
 
struct  FNaniteRasterMaterialCacheKey
 
struct  FNaniteRasterMaterialCache
 
struct  FNaniteRasterEntry
 
struct  FNaniteRasterEntryKeyFuncs
 
class  FNaniteRasterBinIndexTranslator
 
class  FNaniteRasterPipelines
 
struct  FNaniteShadingBin
 
struct  FNaniteShadingPipeline
 
struct  FNaniteShadingEntry
 
struct  FNaniteShadingEntryKeyFuncs
 
class  FNaniteShadingPipelines
 
struct  FNaniteShadingCommand
 
struct  FNaniteShadingCommands
 

Namespaces

namespace  Nanite
 

Typedefs

using FNaniteRasterPipelineMap = Experimental::TRobinHoodHashMap< FNaniteRasterPipeline, FNaniteRasterEntry, FNaniteRasterEntryKeyFuncs >
 
using FNaniteShadingPipelineMap = Experimental::TRobinHoodHashMap< FNaniteShadingPipeline, FNaniteShadingEntry, FNaniteShadingEntryKeyFuncs >
 

Functions

 DECLARE_LOG_CATEGORY_EXTERN (LogNanite, Warning, All)
 
 DECLARE_GPU_STAT_NAMED_EXTERN (NaniteDebug, TEXT("Nanite Debug"))
 
void Nanite::SetCullingViewOverrides (FViewInfo const *InCullingView, Nanite::FPackedViewParams &InOutParams)
 
FPackedView Nanite::CreatePackedView (const FPackedViewParams &Params)
 
FPackedViewParams Nanite::CreateViewParamsFromViewInfo (const FViewInfo &View, FIntPoint RasterContextSize, uint32 Flags, uint32 StreamingPriorityCategory, float MinBoundsRadius, float MaxPixelsPerEdgeMultipler, const FIntRect *InHZBTestViewRect)
 
FPackedView Nanite::CreatePackedViewFromViewInfo (const FViewInfo &View, FIntPoint RasterContextSize, uint32 Flags, uint32 StreamingPriorityCategory, float MinBoundsRadius, float MaxPixelsPerEdgeMultipler, const FIntRect *InHZBTestViewRect, bool bUseCurrentPreTranslationForHZB)
 
bool Nanite::ShouldDrawSceneViewsInOneNanitePass (const FViewInfo &View)
 
TRDGUniformBufferRef< FNaniteShadingUniformParametersCreateDebugNaniteShadingUniformBuffer (FRDGBuilder &GraphBuilder)
 
TRDGUniformBufferRef< FNaniteRasterUniformParametersCreateDebugNaniteRasterUniformBuffer (FRDGBuilder &GraphBuilder)
 
uint32 GetTypeHash (const FNaniteRasterMaterialCacheKey &Key)
 
bool ShouldRenderNanite (const FScene *Scene, const FViewInfo &View, bool bCheckForAtomicSupport=true)
 
bool WouldRenderNanite (const FScene *Scene, const FViewInfo &View, bool bCheckForAtomicSupport=true, bool bCheckForProjectSetting=true)
 
bool UseComputeDepthExport ()
 

Typedef Documentation

◆ FNaniteRasterPipelineMap

◆ FNaniteShadingPipelineMap

Function Documentation

◆ CreateDebugNaniteRasterUniformBuffer()

TRDGUniformBufferRef< FNaniteRasterUniformParameters > CreateDebugNaniteRasterUniformBuffer ( FRDGBuilder GraphBuilder)
extern

◆ CreateDebugNaniteShadingUniformBuffer()

TRDGUniformBufferRef< FNaniteShadingUniformParameters > CreateDebugNaniteShadingUniformBuffer ( FRDGBuilder GraphBuilder)
extern

◆ DECLARE_GPU_STAT_NAMED_EXTERN()

DECLARE_GPU_STAT_NAMED_EXTERN ( NaniteDebug  ,
TEXT("Nanite Debug"  
)

◆ DECLARE_LOG_CATEGORY_EXTERN()

DECLARE_LOG_CATEGORY_EXTERN ( LogNanite  ,
Warning  ,
All   
)

◆ GetTypeHash()

uint32 GetTypeHash ( const FNaniteRasterMaterialCacheKey Key)
inline

◆ ShouldRenderNanite()

bool ShouldRenderNanite ( const FScene Scene,
const FViewInfo View,
bool  bCheckForAtomicSupport = true 
)
extern

◆ UseComputeDepthExport()

bool UseComputeDepthExport ( )
extern

◆ WouldRenderNanite()

bool WouldRenderNanite ( const FScene Scene,
const FViewInfo View,
bool  bCheckForAtomicSupport = true,
bool  bCheckForProjectSetting = true 
)
extern

Checks whether Nanite would be rendered in this view. Used to give a visual warning about the project settings that can disable Nanite.