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

#include <RHI.h>

Public Member Functions

 FVertexElement ()
 
 FVertexElement (uint8 InStreamIndex, uint8 InOffset, EVertexElementType InType, uint8 InAttributeIndex, uint16 InStride, bool bInUseInstanceIndex=false)
 
bool operator== (const FVertexElement &Other) const
 
RHI_API FString ToString () const
 
RHI_API void FromString (const FString &Src)
 
RHI_API void FromString (const FStringView &Src)
 

Public Attributes

uint8 StreamIndex
 
uint8 Offset
 
TEnumAsByte< EVertexElementTypeType
 
uint8 AttributeIndex
 
uint16 Stride
 
uint16 bUseInstanceIndex
 

Friends

FArchiveoperator<< (FArchive &Ar, FVertexElement &Element)
 

Constructor & Destructor Documentation

◆ FVertexElement() [1/2]

FVertexElement::FVertexElement ( )
inline

◆ FVertexElement() [2/2]

FVertexElement::FVertexElement ( uint8  InStreamIndex,
uint8  InOffset,
EVertexElementType  InType,
uint8  InAttributeIndex,
uint16  InStride,
bool  bInUseInstanceIndex = false 
)
inline

Member Function Documentation

◆ FromString() [1/2]

void FVertexElement::FromString ( const FString &  Src)

◆ FromString() [2/2]

void FVertexElement::FromString ( const FStringView Src)

◆ operator==()

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

◆ ToString()

FString FVertexElement::ToString ( ) const

Friends And Related Symbol Documentation

◆ operator<<

FArchive & operator<< ( FArchive Ar,
FVertexElement Element 
)
friend

Member Data Documentation

◆ AttributeIndex

uint8 FVertexElement::AttributeIndex

◆ bUseInstanceIndex

uint16 FVertexElement::bUseInstanceIndex

Whether to use instance index or vertex index to consume the element.
eg if bUseInstanceIndex is 0, the element will be repeated for every instance.

◆ Offset

uint8 FVertexElement::Offset

◆ StreamIndex

uint8 FVertexElement::StreamIndex

◆ Stride

uint16 FVertexElement::Stride

◆ Type

TEnumAsByte<EVertexElementType> FVertexElement::Type

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