FMaterialStatsUtils

Class used for various stats utilities

Windows
MacOS
Linux

References

Module

MaterialEditor

Header

/Engine/Source/Editor/MaterialEditor/Public/MaterialStatsCommon.h

Include

#include "MaterialStatsCommon.h"

Syntax

class FMaterialStatsUtils

Remarks

Class used for various stats utilities

Functions

Name Description

Public function Static

TSharedPtr< ...

 

CreateMaterialStats

(
    IMaterialEditor* MaterialEdito...
)

Call this to create an instance to FMaterialStats

Public function Static

void

 

ExtractMatertialStatsInfo

(
    FShaderStatsInfo& OutInfo,
    const FMaterialResource* Targe...
)

Public function Static

FString

 

GetPlatformOfflineCompilerPath

(
    const EShaderPlatform ShaderPlatfor...
)

Public function Static

FString

 

GetPlatformTypeName

(
    const EPlatformCategoryType InEnumV...
)

Public function Static

void

 

GetRepresentativeInstructionCounts

(
    TArray< FShaderInstructionsInfo >&...,
    const FMaterialResource* Targe...
)

Gets instruction counts that best represent the likely usage of this material based on shading model and other factors.

Public function Static

void

 

GetRepresentativeShaderTypesAndDescriptions

(
    TMap< FName, TArray< FRepresentativ...,
    const FMaterial* TargetMateria...
)

Public function Static

bool

 

IsPlatformOfflineCompilerAvailable

(
    const EShaderPlatform ShaderPlatfor...
)

Public function Static

FString

 

MaterialQualityToShortString

(
    const EMaterialQualityLevel::Type Q...
)

Public function Static

FString

 

MaterialQualityToString

(
    const EMaterialQualityLevel::Type Q...
)

Utility functions that translate various enum values to strings

Public function Static

bool

 

PlatformNeedsOfflineCompiler

(
    const EShaderPlatform ShaderPlatfor...
)

Public function Static

FLinearColor

 

PlatformTypeColor

(
    EPlatformCategoryType PlatformType
)

Public function Static

FLinearColor

 

QualitySettingColor

(
    const EMaterialQualityLevel::Type Q...
)

Public function Static

FString

 

RepresentativeShaderTypeToString

(
    const ERepresentativeShader ShaderT...
)

Public function Static

FString

 

ShaderPlatformTypeName

(
    const EShaderPlatform PlatformID
)

Public function Static

EMaterialQua...

 

StringToMaterialQuality

(
    const FString& StrQuality
)

Classes

Constants

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss