UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FShaderCompilerMaterialCounters Struct Reference

#include <ShaderCompiler.h>

Public Member Functions

FShaderCompilerMaterialCountersoperator+= (const FShaderCompilerMaterialCounters &Other)
 
void WriteStatSummary (const TCHAR *AggregatedSuffix)
 
void GatherAnalytics (TArray< FAnalyticsEventAttribute > &Attributes)
 

Public Attributes

int32 NumMaterialsCooked = 0
 
int32 MaterialTranslateCalls = 0
 
double MaterialTranslateTotalTimeSec = 0.0
 
double MaterialTranslateTranslationOnlyTimeSec = 0.0
 
double MaterialTranslateSerializationOnlyTimeSec = 0.0
 
int32 MaterialCacheHits = 0
 

Member Function Documentation

◆ GatherAnalytics()

void FShaderCompilerMaterialCounters::GatherAnalytics ( TArray< FAnalyticsEventAttribute > &  Attributes)

◆ operator+=()

FShaderCompilerMaterialCounters & FShaderCompilerMaterialCounters::operator+= ( const FShaderCompilerMaterialCounters Other)
inline

◆ WriteStatSummary()

void FShaderCompilerMaterialCounters::WriteStatSummary ( const TCHAR AggregatedSuffix)

Member Data Documentation

◆ MaterialCacheHits

int32 FShaderCompilerMaterialCounters::MaterialCacheHits = 0

The total number times a material translation was skipped because the the results were in the DDC.

◆ MaterialTranslateCalls

int32 FShaderCompilerMaterialCounters::MaterialTranslateCalls = 0

The total number of materials that have been translated.

◆ MaterialTranslateSerializationOnlyTimeSec

double FShaderCompilerMaterialCounters::MaterialTranslateSerializationOnlyTimeSec = 0.0

The total time spent serializing DDC results.

◆ MaterialTranslateTotalTimeSec

double FShaderCompilerMaterialCounters::MaterialTranslateTotalTimeSec = 0.0

The total time in seconds to translate all materials.

◆ MaterialTranslateTranslationOnlyTimeSec

double FShaderCompilerMaterialCounters::MaterialTranslateTranslationOnlyTimeSec = 0.0

The total time spent actually translating materials (rather than for instance accessing the DDC cache).

◆ NumMaterialsCooked

int32 FShaderCompilerMaterialCounters::NumMaterialsCooked = 0

The total number of materials cooked. This corresponds to UMaterialInterface::Presave()


The documentation for this struct was generated from the following files: