UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Shader::FPreshaderType Struct Reference

#include <PreshaderTypes.h>

Public Member Functions

 FPreshaderType ()=default
 
 FPreshaderType (const FType &InType)
 
 FPreshaderType (EValueType InType)
 
bool IsStruct () const
 
int32 GetNumComponents () const
 
EValueComponentType GetComponentType (int32 Index) const
 

Public Attributes

uint64 StructTypeHash = 0u
 
TArrayView< const EValueComponentTypeStructComponentTypes
 
EValueType ValueType = EValueType::Void
 

Detailed Description

Mirrors Shader::FType, but stores StructType as a hash rather than a pointer to facilitate serialization Struct's flattened component types are stored directly, as that is the primary thing needed at runtime

Constructor & Destructor Documentation

◆ FPreshaderType() [1/3]

UE::Shader::FPreshaderType::FPreshaderType ( )
default

◆ FPreshaderType() [2/3]

UE::Shader::FPreshaderType::FPreshaderType ( const FType InType)

◆ FPreshaderType() [3/3]

UE::Shader::FPreshaderType::FPreshaderType ( EValueType  InType)

Member Function Documentation

◆ GetComponentType()

EValueComponentType UE::Shader::FPreshaderType::GetComponentType ( int32  Index) const

◆ GetNumComponents()

int32 UE::Shader::FPreshaderType::GetNumComponents ( ) const
inline

◆ IsStruct()

bool UE::Shader::FPreshaderType::IsStruct ( ) const
inline

Member Data Documentation

◆ StructComponentTypes

TArrayView<const EValueComponentType> UE::Shader::FPreshaderType::StructComponentTypes

◆ StructTypeHash

uint64 UE::Shader::FPreshaderType::StructTypeHash = 0u

◆ ValueType

EValueType UE::Shader::FPreshaderType::ValueType = EValueType::Void

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