Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore
FGraphRenderCost represents the accumulated render cost of a graph. Individual nodes in a graph can report their render cost through an FNodeRenderCost.
The render cost of each node is added together to determine the graph's render cost.
| Name | FGraphRenderCost |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundRenderCost.h |
| Include Path | #include "MetasoundRenderCost.h" |
Syntax
class FGraphRenderCost : public TSharedFromThis< FGraphRenderCost >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FGraphRenderCost
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGraphRenderCost
(
EPrivateToken InToken |
MetasoundRenderCost.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NodeCosts | TArray< float > | MetasoundRenderCost.h | ||
| NodeHierarchies | TArray< TArray< FGuid > > | MetasoundRenderCost.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNodeRenderCost AddNode
(
const FGuid& InNodeInstanceID, |
Add a node to the graph's render cost. | MetasoundRenderCost.h | |
float ComputeGraphRenderCost() |
Adds all the individual node render costs and returns the result. | MetasoundRenderCost.h | |
void ResetNodeRenderCosts() |
Reset the individual node render costs to zero. | MetasoundRenderCost.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FGraphRenderCost > MakeGraphRenderCost() |
MetasoundRenderCost.h |