UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialInsights.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
6
10
uint16_t uint16
Definition binka_ue_file_header.h:7
Definition NameTypes.h:617
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition MaterialExpression.h:150
Definition Object.h:95
EValueType
Definition ShaderTypes.h:94
Definition MaterialExpressionIO.h:23
Definition MaterialExpressionIO.h:115
Nested structure that represents a single connection insight.
Definition MaterialInsights.h:26
UE::Shader::EValueType ValueType
Type of the value flowing through the connection.
Definition MaterialInsights.h:31
const UMaterialExpression * OutputExpression
Pointer to the output expression of the connection.
Definition MaterialInsights.h:28
int OutputIndex
Index of the output in the connection.
Definition MaterialInsights.h:30
const UObject * InputObject
Pointer to the input object of the connection.
Definition MaterialInsights.h:27
int InputIndex
Index of the input in the connection.
Definition MaterialInsights.h:29
Wraps information about a uniform parameter (ScalarParametr, VectorParameter) allocation in the unifo...
Definition MaterialInsights.h:48
uint16 BufferSlotOffset
First component of the float4 above (e.g. 0 for .x, 1 for .y, etc)
Definition MaterialInsights.h:50
uint16 BufferSlotIndex
Index of the preshader buffer constant float4 slot (e.g. PreshaderBuffer[0])
Definition MaterialInsights.h:49
FName ParameterName
The parameter name.
Definition MaterialInsights.h:53
uint16 ComponentsCount
Number of components stored, same for the Uniform and the Parameter.
Definition MaterialInsights.h:51
FUniformBufferSlotComponentType ComponentType
Parameter component type.
Definition MaterialInsights.h:52
A structure that holds reflection information about a material. This structure is typically populated...
Definition MaterialInsights.h:21
FString LegacyHLSLCode
HLSL full legacy generated source.
Definition MaterialInsights.h:69
TMap< FString, FString > Legacy_ShaderStringParameters
HLSL template string parameters for the legacy translator.
Definition MaterialInsights.h:66
FString IRString
String of the IR after translation.
Definition MaterialInsights.h:63
TMap< FString, FString > New_ShaderStringParameters
HLSL template string parameters for the new translator.
Definition MaterialInsights.h:72
TArray< FConnectionInsight > ConnectionInsights
Array of connection insights.
Definition MaterialInsights.h:57
void Empty()
Clears all insight data.
Definition MaterialInsights.cpp:9
TArray< FUniformParameterAllocationInsight > UniformParameterAllocationInsights
Array of parameter allocation insights.
Definition MaterialInsights.h:60
FUniformBufferSlotComponentType
Definition MaterialInsights.h:34
@ CT_Unused
Definition MaterialInsights.h:35
@ CT_LWC
Definition MaterialInsights.h:38
@ CT_Int
Definition MaterialInsights.h:36
@ CT_Float
Definition MaterialInsights.h:37
FString NewHLSLCode
HLSL full new generate source.
Definition MaterialInsights.h:75
FMaterialInsights()
Definition MaterialInsights.cpp:5