UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SubstrateMaterial.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Containers/Map.h"
7#include "MaterialCompiler.h"
8#include "SubstrateDefinitions.h"
9
11
13
16
18{
22 // If all the above are false, complexity is Complex
23
24 void Reset()
25 {
26 bIsComplexSpecial = false;
27 bIsSingle = false;
28 bIsSimple = false;
29 }
30
35
40
41 static FString ToString(uint8 InMaterialType, bool bUpperCase = false)
42 {
43 switch (InMaterialType)
44 {
45 case SUBSTRATE_MATERIAL_TYPE_SIMPLE: return bUpperCase ? TEXT("SIMPLE") : TEXT("Simple");
46 case SUBSTRATE_MATERIAL_TYPE_SINGLE: return bUpperCase ? TEXT("SINGLE") : TEXT("Single");
47 case SUBSTRATE_MATERIAL_TYPE_COMPLEX: return bUpperCase ? TEXT("COMPLEX") : TEXT("Complex");
48 case SUBSTRATE_MATERIAL_TYPE_COMPLEX_SPECIAL: return bUpperCase ? TEXT("COMPLEX SPECIAL") : TEXT("Complex Special");
49 default: return bUpperCase ? TEXT("UNKOWN") : TEXT("Unknown");
50 }
51 }
52};
@ INDEX_NONE
Definition CoreMiscDefines.h:150
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FSubstrateRegisteredSharedLocalBasis SubstrateCompilationInfoCreateNullSharedLocalBasis()
Definition SubstrateMaterial.cpp:30
FString GetSubstrateBSDFName(uint8 BSDFType)
Definition SubstrateMaterial.cpp:9
FSubstrateRegisteredSharedLocalBasis SubstrateCompilationInfoCreateSharedLocalBasis(FMaterialCompiler *Compiler, int32 NormalCodeChunk, int32 TangentCodeChunk=INDEX_NONE)
Definition SubstrateMaterial.cpp:35
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition MaterialCompiler.h:109
Definition SubstrateMaterial.h:18
uint8 SubstrateMaterialType() const
Definition SubstrateMaterial.h:31
void Reset()
Definition SubstrateMaterial.h:24
static FString ToString(uint8 InMaterialType, bool bUpperCase=false)
Definition SubstrateMaterial.h:41
bool IsSingle() const
Definition SubstrateMaterial.h:37
bool bIsSingle
Definition SubstrateMaterial.h:20
bool bIsComplexSpecial
Definition SubstrateMaterial.h:19
bool IsComplex() const
Definition SubstrateMaterial.h:38
bool IsSimple() const
Definition SubstrateMaterial.h:36
bool IsComplexSpecial() const
Definition SubstrateMaterial.h:39
bool bIsSimple
Definition SubstrateMaterial.h:21
Definition SubstrateMaterialShared.h:16