UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialIRDebug.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
5
6#if WITH_EDITOR
7
8namespace MIR
9{
10
11// Dumps a Graphviz Dot file to "{ProjectLogDir}/MaterialIRDumpUseGraph.dot" containing the
12// full graph of IR nodes (with a string representation of value parameters inside each node),
13// connected by the "Use" relationship. A value node will look connected to another value node
14// iff it uses that other value as argument (e.g. an "Add" instruction will link to its operand values).
15void DebugDumpIRUseGraph(const FMaterialIRModule& Module);
16
17// Returns the IR generated by the module as a string.
18FString DebugDumpIR(FStringView MaterialName, const FMaterialIRModule& Module);
19
20} // namespace MIR
21
22#endif // #if WITH_EDITOR
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition MaterialExpression.h:36