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

Functions

template<typename T >
bool CreateMaterialCacheComputeLayerShadingCommand (const FScene &Scene, const FPrimitiveSceneProxy *SceneProxy, const FMaterialRenderProxy *Material, bool bAllowDefaultFallback, const FGuid &TagGuid, FRHICommandListBase &RHICmdList, FMaterialCacheLayerShadingCSCommand &OutShadingCommand)
 
bool LoadMaterialCacheNaniteShadingPipeline (const FScene &Scene, const Nanite::FSceneProxyBase *SceneProxy, const Nanite::FSceneProxyBase::FMaterialSection &Section, uint32 ShaderTagIndex, FNaniteShadingPipeline &ShadingPipeline)
 
bool CreateMaterialCacheStaticLayerDrawCommand (FScene &Scene, const FPrimitiveSceneProxy *Proxy, const FMaterialRenderProxy *MaterialRenderProxy, const FStaticMeshBatch &MeshBatch, const FGuid &TagGuid, FMaterialCacheMeshDrawCommand &OutMeshCommand)
 
template bool CreateMaterialCacheComputeLayerShadingCommand< FMaterialCacheShadeCS > (const FScene &Scene, const FPrimitiveSceneProxy *SceneProxy, const FMaterialRenderProxy *Material, bool bAllowDefaultFallback, const FGuid &TagGuid, FRHICommandListBase &RHICmdList, FMaterialCacheLayerShadingCSCommand &Out)
 
template bool CreateMaterialCacheComputeLayerShadingCommand< FMaterialCacheNaniteShadeCS > (const FScene &Scene, const FPrimitiveSceneProxy *SceneProxy, const FMaterialRenderProxy *Material, bool bAllowDefaultFallback, const FGuid &TagGuid, FRHICommandListBase &RHICmdList, FMaterialCacheLayerShadingCSCommand &Out)
 

Variables

bool GMaterialCacheStaticMeshEnableViewportFromVS
 

Function Documentation

◆ CreateMaterialCacheComputeLayerShadingCommand()

template<typename T >
bool CreateMaterialCacheComputeLayerShadingCommand ( const FScene Scene,
const FPrimitiveSceneProxy SceneProxy,
const FMaterialRenderProxy Material,
bool  bAllowDefaultFallback,
const FGuid TagGuid,
FRHICommandListBase RHICmdList,
FMaterialCacheLayerShadingCSCommand OutShadingCommand 
)

Create a compute shading command with a layer material

◆ CreateMaterialCacheComputeLayerShadingCommand< FMaterialCacheNaniteShadeCS >()

template bool CreateMaterialCacheComputeLayerShadingCommand< FMaterialCacheNaniteShadeCS > ( const FScene Scene,
const FPrimitiveSceneProxy SceneProxy,
const FMaterialRenderProxy Material,
bool  bAllowDefaultFallback,
const FGuid TagGuid,
FRHICommandListBase RHICmdList,
FMaterialCacheLayerShadingCSCommand Out 
)

◆ CreateMaterialCacheComputeLayerShadingCommand< FMaterialCacheShadeCS >()

template bool CreateMaterialCacheComputeLayerShadingCommand< FMaterialCacheShadeCS > ( const FScene Scene,
const FPrimitiveSceneProxy SceneProxy,
const FMaterialRenderProxy Material,
bool  bAllowDefaultFallback,
const FGuid TagGuid,
FRHICommandListBase RHICmdList,
FMaterialCacheLayerShadingCSCommand Out 
)

Instantiate per shading command

◆ CreateMaterialCacheStaticLayerDrawCommand()

bool CreateMaterialCacheStaticLayerDrawCommand ( FScene Scene,
const FPrimitiveSceneProxy Proxy,
const FMaterialRenderProxy MaterialRenderProxy,
const FStaticMeshBatch MeshBatch,
const FGuid TagGuid,
FMaterialCacheMeshDrawCommand OutMeshCommand 
)

Create a static mesh command with a layer material

◆ LoadMaterialCacheNaniteShadingPipeline()

bool LoadMaterialCacheNaniteShadingPipeline ( const FScene Scene,
const Nanite::FSceneProxyBase SceneProxy,
const Nanite::FSceneProxyBase::FMaterialSection Section,
uint32  ShaderTagIndex,
FNaniteShadingPipeline ShadingPipeline 
)

Variable Documentation

◆ GMaterialCacheStaticMeshEnableViewportFromVS

bool GMaterialCacheStaticMeshEnableViewportFromVS
extern