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

#include <Shader.h>

Public Member Functions

 FShaderTypeDependency ()
 
 FShaderTypeDependency (FShaderType *InShaderType, EShaderPlatform ShaderPlatform)
 
bool operator== (const FShaderTypeDependency &Reference) const
 
bool operator!= (const FShaderTypeDependency &Reference) const
 
RENDERCORE_API void RefreshCachedSourceHash (EShaderPlatform ShaderPlatform)
 
 LAYOUT_FIELD (FHashedName, ShaderTypeName)
 
 LAYOUT_FIELD (int32, PermutationId)
 
 LAYOUT_FIELD (FSHAHash, SourceHash)
 

Friends

FArchiveoperator<< (FArchive &Ar, class FShaderTypeDependency &Ref)
 

Detailed Description

Encapsulates a dependency on a shader type and saved state from that shader type.

Constructor & Destructor Documentation

◆ FShaderTypeDependency() [1/2]

FShaderTypeDependency::FShaderTypeDependency ( )
inline

◆ FShaderTypeDependency() [2/2]

FShaderTypeDependency::FShaderTypeDependency ( FShaderType InShaderType,
EShaderPlatform  ShaderPlatform 
)
inline

Member Function Documentation

◆ LAYOUT_FIELD() [1/3]

FShaderTypeDependency::LAYOUT_FIELD ( FHashedName  ,
ShaderTypeName   
)

Shader type

◆ LAYOUT_FIELD() [2/3]

FShaderTypeDependency::LAYOUT_FIELD ( FSHAHash  ,
SourceHash   
)

Used to detect changes to the shader source files. This is always present, as this type is sometimes frozen.

◆ LAYOUT_FIELD() [3/3]

FShaderTypeDependency::LAYOUT_FIELD ( int32  ,
PermutationId   
)

Unique permutation identifier of the global shader type.

◆ operator!=()

bool FShaderTypeDependency::operator!= ( const FShaderTypeDependency Reference) const
inline

◆ operator==()

bool FShaderTypeDependency::operator== ( const FShaderTypeDependency Reference) const
inline

◆ RefreshCachedSourceHash()

void FShaderTypeDependency::RefreshCachedSourceHash ( EShaderPlatform  ShaderPlatform)

Call GetShaderFileHash to get the cached value for the filename's hash in the current process.

Friends And Related Symbol Documentation

◆ operator<<

FArchive & operator<< ( FArchive Ar,
class FShaderTypeDependency Ref 
)
friend

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