![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
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< FConnectionInsight > | ConnectionInsights |
| Array of connection insights. | |
| TArray< FUniformParameterAllocationInsight > | UniformParameterAllocationInsights |
| 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. | |
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.
| FMaterialInsights::FMaterialInsights | ( | ) |
| void FMaterialInsights::Empty | ( | ) |
Clears all insight data.
| TArray<FConnectionInsight> FMaterialInsights::ConnectionInsights |
Array of connection insights.
| FString FMaterialInsights::IRString |
String of the IR after translation.
| TMap<FString, FString> FMaterialInsights::Legacy_ShaderStringParameters |
HLSL template string parameters for the legacy translator.
| FString FMaterialInsights::LegacyHLSLCode |
HLSL full legacy generated source.
| TMap<FString, FString> FMaterialInsights::New_ShaderStringParameters |
HLSL template string parameters for the new translator.
| FString FMaterialInsights::NewHLSLCode |
HLSL full new generate source.
| TArray<FUniformParameterAllocationInsight> FMaterialInsights::UniformParameterAllocationInsights |
Array of parameter allocation insights.