UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FShaderCompilerDefinitions Class Reference

#include <ShaderCompilerDefinitions.h>

Classes

class  FConstIterator
 

Public Member Functions

RENDERCORE_API FShaderCompilerDefinitions (bool bIncludeInitialDefines=false)
 
RENDERCORE_API FShaderCompilerDefinitions (const FShaderCompilerDefinitions &)
 
template<typename ValueType >
void SetDefine (FName Name, ValueType Value)
 
void SetDefine (FName Name, const TCHAR *Value)
 
void SetDefine (FName Name, const FString &Value)
 
template<typename ValueType >
void SetDefine (FShaderCompilerDefineNameCache &Name, ValueType Value)
 
void SetDefine (FShaderCompilerDefineNameCache &Name, const TCHAR *Value)
 
void SetDefine (FShaderCompilerDefineNameCache &Name, const FString &Value)
 
int32 GetIntegerValue (FName Name) const
 
int32 GetIntegerValue (FShaderCompilerDefineNameCache &NameCache, int32 ResultIfNotFound) const
 
bool Contains (FName Name) const
 
FORCEINLINE int32 Num () const
 
void Empty ()
 
void Merge (const FShaderCompilerDefinitions &Other)
 
FShaderCompilerDefinitionsoperator= (const FShaderCompilerDefinitions &Other)
 

Friends

struct FShaderInitialDefinesInitializer
 
FArchiveoperator<< (FArchive &Ar, FShaderCompilerDefinitions &Defs)
 

Detailed Description

Container for shader compiler definitions.

Constructor & Destructor Documentation

◆ FShaderCompilerDefinitions() [1/2]

FShaderCompilerDefinitions::FShaderCompilerDefinitions ( bool  bIncludeInitialDefines = false)

◆ FShaderCompilerDefinitions() [2/2]

FShaderCompilerDefinitions::FShaderCompilerDefinitions ( const FShaderCompilerDefinitions )
default

Member Function Documentation

◆ Contains()

bool FShaderCompilerDefinitions::Contains ( FName  Name) const
inline

◆ Empty()

void FShaderCompilerDefinitions::Empty ( )
inline

◆ GetIntegerValue() [1/2]

int32 FShaderCompilerDefinitions::GetIntegerValue ( FName  Name) const
inline

◆ GetIntegerValue() [2/2]

int32 FShaderCompilerDefinitions::GetIntegerValue ( FShaderCompilerDefineNameCache NameCache,
int32  ResultIfNotFound 
) const
inline

◆ Merge()

void FShaderCompilerDefinitions::Merge ( const FShaderCompilerDefinitions Other)
inline

◆ Num()

FORCEINLINE int32 FShaderCompilerDefinitions::Num ( ) const
inline

◆ operator=()

FShaderCompilerDefinitions & FShaderCompilerDefinitions::operator= ( const FShaderCompilerDefinitions Other)
inline

◆ SetDefine() [1/6]

void FShaderCompilerDefinitions::SetDefine ( FName  Name,
const FString &  Value 
)
inline

◆ SetDefine() [2/6]

void FShaderCompilerDefinitions::SetDefine ( FName  Name,
const TCHAR Value 
)
inline

◆ SetDefine() [3/6]

template<typename ValueType >
void FShaderCompilerDefinitions::SetDefine ( FName  Name,
ValueType  Value 
)
inline

Value types supported: bool, int32, uint32, float, const TCHAR*, FString&

◆ SetDefine() [4/6]

void FShaderCompilerDefinitions::SetDefine ( FShaderCompilerDefineNameCache Name,
const FString &  Value 
)
inline

◆ SetDefine() [5/6]

void FShaderCompilerDefinitions::SetDefine ( FShaderCompilerDefineNameCache Name,
const TCHAR Value 
)
inline

◆ SetDefine() [6/6]

template<typename ValueType >
void FShaderCompilerDefinitions::SetDefine ( FShaderCompilerDefineNameCache Name,
ValueType  Value 
)
inline

Friends And Related Symbol Documentation

◆ FShaderInitialDefinesInitializer

friend struct FShaderInitialDefinesInitializer
friend

◆ operator<<

FArchive & operator<< ( FArchive Ar,
FShaderCompilerDefinitions Defs 
)
friend

The documentation for this class was generated from the following files: