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

#include <ShaderTypes.h>

Public Member Functions

 FValue ()=default
 
 FValue (const FType &InType)
 
 FValue (EValueComponentType InComponentType, int8 InNumComponents)
 
 FValue (float v)
 
 FValue (float X, float Y)
 
 FValue (float X, float Y, float Z)
 
 FValue (float X, float Y, float Z, float W)
 
 FValue (double v)
 
 FValue (double X, double Y)
 
 FValue (double X, double Y, double Z)
 
 FValue (double X, double Y, double Z, double W)
 
 FValue (const FLinearColor &Value)
 
 FValue (const FVector2f &Value)
 
 FValue (const FVector3f &Value)
 
 FValue (const FVector3d &Value)
 
 FValue (const FVector4f &Value)
 
 FValue (const FVector4d &Value)
 
 FValue (bool v)
 
 FValue (bool X, bool Y, bool Z, bool W)
 
 FValue (int32 v)
 
const FTypeGetType () const
 
int32 GetNumComponents () const
 
FValueComponent GetComponent (int32 Index) const
 
FMemoryImageValue AsMemoryImage () const
 
FFloatValue AsFloat () const
 
FDoubleValue AsDouble () const
 
FIntValue AsInt () const
 
FBoolValue AsBool () const
 
FLinearColor AsLinearColor () const
 
FVector4d AsVector4d () const
 
float AsFloatScalar () const
 
bool AsBoolScalar () const
 
bool IsZero () const
 
const TCHARToString (EValueStringFormat Format, FStringBuilderBase &OutString) const
 

Static Public Member Functions

static FValue FromMemoryImage (EValueType Type, const void *Data, uint32 *OutSizeInBytes=nullptr)
 

Public Attributes

FType Type
 
TArray< FValueComponent, TInlineAllocator< 16 > > Component
 

Detailed Description

Can store a numeric/struct shader value of any type Values are represented as a flat list of components

Constructor & Destructor Documentation

◆ FValue() [1/20]

UE::Shader::FValue::FValue ( )
default

◆ FValue() [2/20]

UE::Shader::FValue::FValue ( const FType InType)
inlineexplicit

◆ FValue() [3/20]

UE::Shader::FValue::FValue ( EValueComponentType  InComponentType,
int8  InNumComponents 
)
inline

◆ FValue() [4/20]

UE::Shader::FValue::FValue ( float  v)
inline

◆ FValue() [5/20]

UE::Shader::FValue::FValue ( float  X,
float  Y 
)
inline

◆ FValue() [6/20]

UE::Shader::FValue::FValue ( float  X,
float  Y,
float  Z 
)
inline

◆ FValue() [7/20]

UE::Shader::FValue::FValue ( float  X,
float  Y,
float  Z,
float  W 
)
inline

◆ FValue() [8/20]

UE::Shader::FValue::FValue ( double  v)
inline

◆ FValue() [9/20]

UE::Shader::FValue::FValue ( double  X,
double  Y 
)
inline

◆ FValue() [10/20]

UE::Shader::FValue::FValue ( double  X,
double  Y,
double  Z 
)
inline

◆ FValue() [11/20]

UE::Shader::FValue::FValue ( double  X,
double  Y,
double  Z,
double  W 
)
inline

◆ FValue() [12/20]

UE::Shader::FValue::FValue ( const FLinearColor Value)
inline

◆ FValue() [13/20]

UE::Shader::FValue::FValue ( const FVector2f Value)
inline

◆ FValue() [14/20]

UE::Shader::FValue::FValue ( const FVector3f Value)
inline

◆ FValue() [15/20]

UE::Shader::FValue::FValue ( const FVector3d Value)
inline

◆ FValue() [16/20]

UE::Shader::FValue::FValue ( const FVector4f Value)
inline

◆ FValue() [17/20]

UE::Shader::FValue::FValue ( const FVector4d Value)
inline

◆ FValue() [18/20]

UE::Shader::FValue::FValue ( bool  v)
inline

◆ FValue() [19/20]

UE::Shader::FValue::FValue ( bool  X,
bool  Y,
bool  Z,
bool  W 
)
inline

◆ FValue() [20/20]

UE::Shader::FValue::FValue ( int32  v)
inline

Member Function Documentation

◆ AsBool()

FBoolValue UE::Shader::FValue::AsBool ( ) const

◆ AsBoolScalar()

bool UE::Shader::FValue::AsBoolScalar ( ) const

◆ AsDouble()

FDoubleValue UE::Shader::FValue::AsDouble ( ) const

◆ AsFloat()

FFloatValue UE::Shader::FValue::AsFloat ( ) const

◆ AsFloatScalar()

float UE::Shader::FValue::AsFloatScalar ( ) const

◆ AsInt()

FIntValue UE::Shader::FValue::AsInt ( ) const

◆ AsLinearColor()

FLinearColor UE::Shader::FValue::AsLinearColor ( ) const

◆ AsMemoryImage()

FMemoryImageValue UE::Shader::FValue::AsMemoryImage ( ) const

◆ AsVector4d()

FVector4d UE::Shader::FValue::AsVector4d ( ) const

◆ FromMemoryImage()

FValue UE::Shader::FValue::FromMemoryImage ( EValueType  Type,
const void Data,
uint32 OutSizeInBytes = nullptr 
)
static

◆ GetComponent()

FValueComponent UE::Shader::FValue::GetComponent ( int32  Index) const
inline

◆ GetNumComponents()

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

◆ GetType()

const FType & UE::Shader::FValue::GetType ( ) const
inline

◆ IsZero()

bool UE::Shader::FValue::IsZero ( ) const

◆ ToString()

const TCHAR * UE::Shader::FValue::ToString ( EValueStringFormat  Format,
FStringBuilderBase OutString 
) const

Member Data Documentation

◆ Component

TArray<FValueComponent, TInlineAllocator<16> > UE::Shader::FValue::Component

◆ Type

FType UE::Shader::FValue::Type

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