UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialIRInternal.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
5#include "MaterialShared.h"
6
7#if WITH_EDITOR
8
9namespace MIR::Internal {
10
11// Returns the material value tpye of the specified UTexture or URuntimeVirtualTexture.
13
14//
16
17// Returns the value flowing into given expression input (previously set through `BindValueToExpressionInput`).
19
20// Flows a value into given expression input.
22
23// Flows a value int given expression output.
25
26// Computes the hash of a blob of memory. Note: Ptr must be 4 bytes aligned.
27uint32 HashBytes(const void* Ptr, uint32 Size);
28
29/* Other helper functions */
30
31template <typename TKey, typename TValue>
32bool Find(const TMap<TKey, TValue>& Map, const TKey& Key, TValue& OutValue)
33{
34 if (auto ValuePtr = Map.Find(Key)) {
35 OutValue = *ValuePtr;
36 return true;
37 }
38 return false;
39}
40
41} // namespace MIR::Internal
42
43#endif // #if WITH_EDITOR
44
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EMaterialTextureParameterType
Definition MaterialShared.h:530
EMaterialValueType
Definition MaterialValueType.h:15
uint32 Size
Definition VulkanMemory.cpp:4034
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition UnrealString.h.inl:34
Definition Object.h:95
FDocument::ValueType FValue
Definition RapidJsonUtils.h:61
Definition MaterialExpressionIO.h:23
Definition MaterialExpressionIO.h:115