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
4
#include "
Materials/MaterialIRCommon.h
"
5
#include "
MaterialShared.h
"
6
7
#if WITH_EDITOR
8
9
namespace
MIR::Internal {
10
11
// Returns the material value tpye of the specified UTexture or URuntimeVirtualTexture.
12
EMaterialValueType
GetTextureMaterialValueType
(
const
UObject
* TextureObject);
13
14
//
15
EMaterialTextureParameterType
TextureMaterialValueTypeToParameterType
(
EMaterialValueType
Type);
16
17
// Returns the value flowing into given expression input (previously set through `BindValueToExpressionInput`).
18
FValue
*
FetchValueFromExpressionInput
(
FMaterialIRModuleBuilderImpl
* Builder,
const
FExpressionInput
*
Input
);
19
20
// Flows a value into given expression input.
21
void
BindValueToExpressionInput
(
FMaterialIRModuleBuilderImpl
* Builder,
const
FExpressionInput
*
Input
, FValue*
Value
);
22
23
// Flows a value int given expression output.
24
void
BindValueToExpressionOutput
(
FMaterialIRModuleBuilderImpl
* Builder,
const
FExpressionOutput
*
Output
, FValue*
Value
);
25
26
// Computes the hash of a blob of memory. Note: Ptr must be 4 bytes aligned.
27
uint32
HashBytes(
const
void
* Ptr,
uint32
Size
);
28
29
/* Other helper functions */
30
31
template
<
typename
TKey,
typename
TValue>
32
bool
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
ECborCode::Map
@ Map
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
MaterialIRCommon.h
MaterialShared.h
EMaterialTextureParameterType
EMaterialTextureParameterType
Definition
MaterialShared.h:530
EMaterialValueType
EMaterialValueType
Definition
MaterialValueType.h:15
EColorPickerChannels::Value
@ Value
EUserSceneTextureEvent::Output
@ Output
EStringTableLoadingPolicy::Find
@ Find
EStyleColor::Input
@ Input
Size
uint32 Size
Definition
VulkanMemory.cpp:4034
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
TMap
Definition
UnrealString.h.inl:34
UObject
Definition
Object.h:95
UE::Json::FValue
FDocument::ValueType FValue
Definition
RapidJsonUtils.h:61
FExpressionInput
Definition
MaterialExpressionIO.h:23
FExpressionOutput
Definition
MaterialExpressionIO.h:115
Engine
Source
Runtime
Engine
Private
Materials
MaterialIRInternal.h
Generated by
1.9.8