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

A structure that holds reflection information about a material. This structure is typically populated by the material translator as a side product of the translation process itself. More...

#include <MaterialInsights.h>

Classes

struct  FConnectionInsight
 Nested structure that represents a single connection insight. More...
 
struct  FUniformParameterAllocationInsight
 Wraps information about a uniform parameter (ScalarParametr, VectorParameter) allocation in the uniform expression data buffer. An instance of this struct specifies wheere the components of a uniform parameter in the material were allocated in the preshader uniform buffer, that is which vec4 slot and which target components of that vec4. More...
 

Public Types

enum  FUniformBufferSlotComponentType { CT_Unused , CT_Int , CT_Float , CT_LWC }
 

Public Member Functions

 FMaterialInsights ()
 
void Empty ()
 Clears all insight data.
 

Public Attributes

TArray< FConnectionInsightConnectionInsights
 Array of connection insights.
 
TArray< FUniformParameterAllocationInsightUniformParameterAllocationInsights
 Array of parameter allocation insights.
 
FString IRString
 String of the IR after translation.
 
TMap< FString, FString > Legacy_ShaderStringParameters
 HLSL template string parameters for the legacy translator.
 
FString LegacyHLSLCode
 HLSL full legacy generated source.
 
TMap< FString, FString > New_ShaderStringParameters
 HLSL template string parameters for the new translator.
 
FString NewHLSLCode
 HLSL full new generate source.
 

Detailed Description

A structure that holds reflection information about a material. This structure is typically populated by the material translator as a side product of the translation process itself.

You can use these insights for things like providing semantic colouring of the graph UI or accurately knowing what resources are referenced by the translated materials.

Member Enumeration Documentation

◆ FUniformBufferSlotComponentType

Enumerator
CT_Unused 
CT_Int 
CT_Float 
CT_LWC 

Constructor & Destructor Documentation

◆ FMaterialInsights()

FMaterialInsights::FMaterialInsights ( )

Member Function Documentation

◆ Empty()

void FMaterialInsights::Empty ( )

Clears all insight data.

Member Data Documentation

◆ ConnectionInsights

TArray<FConnectionInsight> FMaterialInsights::ConnectionInsights

Array of connection insights.

◆ IRString

FString FMaterialInsights::IRString

String of the IR after translation.

◆ Legacy_ShaderStringParameters

TMap<FString, FString> FMaterialInsights::Legacy_ShaderStringParameters

HLSL template string parameters for the legacy translator.

◆ LegacyHLSLCode

FString FMaterialInsights::LegacyHLSLCode

HLSL full legacy generated source.

◆ New_ShaderStringParameters

TMap<FString, FString> FMaterialInsights::New_ShaderStringParameters

HLSL template string parameters for the new translator.

◆ NewHLSLCode

FString FMaterialInsights::NewHLSLCode

HLSL full new generate source.

◆ UniformParameterAllocationInsights

TArray<FUniformParameterAllocationInsight> FMaterialInsights::UniformParameterAllocationInsights

Array of parameter allocation insights.


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