UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TStaticMeshVertexData< VertexDataType > Class Template Reference

#include <StaticMeshVertexData.h>

+ Inheritance diagram for TStaticMeshVertexData< VertexDataType >:

Public Member Functions

 TStaticMeshVertexData (bool InNeedsCPUAccess=false)
 
void ResizeBuffer (uint32 NumVertices, EResizeBufferFlags BufferFlags=EResizeBufferFlags::None) override
 
void Empty (uint32 NumVertices) override
 
bool IsValidIndex (uint32 Index) override
 
uint32 GetStride () const override
 
uint8GetDataPointer () override
 
FResourceArrayInterfaceGetResourceArray () override
 
const FResourceArrayInterfaceGetResourceArray () const
 
void Serialize (FArchive &Ar, bool bForcePerElementSerialization=false) override
 
void Assign (const TArray< VertexDataType > &Other)
 
SIZE_T GetResourceSize () const override
 
virtual int32 Num () const override
 
bool GetAllowCPUAccess () const override
 
void OverrideFreezeSizeAndAlignment (int64 &Size, int32 &Alignment) const override
 
- Public Member Functions inherited from FStaticMeshVertexDataInterface
virtual ~FStaticMeshVertexDataInterface ()
 

Detailed Description

template<typename VertexDataType>
class TStaticMeshVertexData< VertexDataType >

The implementation of the static mesh vertex data storage type.

Constructor & Destructor Documentation

◆ TStaticMeshVertexData()

Constructor

Parameters
InNeedsCPUAccess- true if resource array data should be CPU accessible

Member Function Documentation

◆ Assign()

void TStaticMeshVertexData< VertexDataType >::Assign ( const TArray< VertexDataType > &  Other)
inline

Assignment. This is currently the only method which allows for modifying an existing resource array

◆ Empty()

void TStaticMeshVertexData< VertexDataType >::Empty ( uint32  NumVertices)
inlineoverridevirtual

◆ GetAllowCPUAccess()

bool TStaticMeshVertexData< VertexDataType >::GetAllowCPUAccess ( ) const
inlineoverridevirtual

◆ GetDataPointer()

uint8 * TStaticMeshVertexData< VertexDataType >::GetDataPointer ( )
inlineoverridevirtual
Returns
uint8 pointer to the resource data array

Implements FStaticMeshVertexDataInterface.

◆ GetResourceArray() [1/2]

const FResourceArrayInterface * TStaticMeshVertexData< VertexDataType >::GetResourceArray ( ) const
inline

◆ GetResourceArray() [2/2]

FResourceArrayInterface * TStaticMeshVertexData< VertexDataType >::GetResourceArray ( )
inlineoverridevirtual
Returns
resource array interface access

Implements FStaticMeshVertexDataInterface.

◆ GetResourceSize()

SIZE_T TStaticMeshVertexData< VertexDataType >::GetResourceSize ( ) const
inlineoverridevirtual

Helper function to return the amount of memory allocated by this container.

Returns
Number of bytes allocated by this container.

Implements FStaticMeshVertexDataInterface.

◆ GetStride()

uint32 TStaticMeshVertexData< VertexDataType >::GetStride ( ) const
inlineoverridevirtual
Returns
stride of the vertex type stored in the resource data array

Implements FStaticMeshVertexDataInterface.

◆ IsValidIndex()

bool TStaticMeshVertexData< VertexDataType >::IsValidIndex ( uint32  Index)
inlineoverridevirtual

◆ Num()

virtual int32 TStaticMeshVertexData< VertexDataType >::Num ( ) const
inlineoverridevirtual

Helper function to return the number of elements by this container.

Returns
Number of elements allocated by this container.

Implements FStaticMeshVertexDataInterface.

◆ OverrideFreezeSizeAndAlignment()

void TStaticMeshVertexData< VertexDataType >::OverrideFreezeSizeAndAlignment ( int64 Size,
int32 Alignment 
) const
inlineoverridevirtual

◆ ResizeBuffer()

void TStaticMeshVertexData< VertexDataType >::ResizeBuffer ( uint32  NumVertices,
EResizeBufferFlags  BufferFlags = EResizeBufferFlags::None 
)
inlineoverridevirtual

Resizes the vertex data buffer, discarding any data which no longer fits.

Parameters
NumVertices- The number of vertices to allocate the buffer for.
BufferFlags- Flags to define the expected behavior of the buffer

Implements FStaticMeshVertexDataInterface.

◆ Serialize()

void TStaticMeshVertexData< VertexDataType >::Serialize ( FArchive Ar,
bool  bForcePerElementSerialization = false 
)
inlineoverridevirtual

Serializer for this class

Parameters
Ar- archive to serialize to
B- data to serialize

Implements FStaticMeshVertexDataInterface.


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