UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FHashedMaterialParameterInfoPacked Struct Reference

#include <MaterialInstanceSupport.h>

Public Member Functions

 FHashedMaterialParameterInfoPacked ()
 
FORCEINLINE FHashedMaterialParameterInfoPacked (const struct FHashedMaterialParameterInfoPacked &Rhs)
 
FHashedMaterialParameterInfoPackedoperator= (const FHashedMaterialParameterInfo &InInfo)
 
bool operator== (const FHashedMaterialParameterInfoPacked &Other) const
 
bool operator== (const FHashedMaterialParameterInfo &Other) const
 

Public Attributes

FScriptName Name
 
int16 Index = 0
 
uint16 HashNext: 14
 
uint16 Association: 2
 

Detailed Description

Structure that packs FHashedMaterialParameterInfo plus a "HashNext" value into 16 bytes to save memory. Allows key/value pairs of 16-byte aligned items like vectors to fit in 32 bytes, rather 48, saving significant space on padding. This introduces limitations that Index cannot exceed 32767, and a given material can't have more than 16384 named parameters of a given type. Both of those numbers are at least a couple orders of magnitude larger than seen in practice.

Constructor & Destructor Documentation

◆ FHashedMaterialParameterInfoPacked() [1/2]

FHashedMaterialParameterInfoPacked::FHashedMaterialParameterInfoPacked ( )
inline

◆ FHashedMaterialParameterInfoPacked() [2/2]

FORCEINLINE FHashedMaterialParameterInfoPacked::FHashedMaterialParameterInfoPacked ( const struct FHashedMaterialParameterInfoPacked Rhs)
inline

Member Function Documentation

◆ operator=()

FHashedMaterialParameterInfoPacked & FHashedMaterialParameterInfoPacked::operator= ( const FHashedMaterialParameterInfo InInfo)
inline

◆ operator==() [1/2]

bool FHashedMaterialParameterInfoPacked::operator== ( const FHashedMaterialParameterInfo Other) const
inline

◆ operator==() [2/2]

bool FHashedMaterialParameterInfoPacked::operator== ( const FHashedMaterialParameterInfoPacked Other) const
inline

HashNext ignored in equality comparisons

Member Data Documentation

◆ Association

uint16 FHashedMaterialParameterInfoPacked::Association

◆ HashNext

uint16 FHashedMaterialParameterInfoPacked::HashNext

◆ Index

int16 FHashedMaterialParameterInfoPacked::Index = 0

◆ Name

FScriptName FHashedMaterialParameterInfoPacked::Name

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