Navigation
API > API/Runtime > API/Runtime/Engine
The implementation of the static mesh vertex data storage type.
| Name | TStaticMeshVertexData |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/StaticMeshVertexData.h |
| Include Path | #include "StaticMeshVertexData.h" |
Syntax
template<typename VertexDataType>
class TStaticMeshVertexData : public FStaticMeshVertexDataInterface
Inheritance Hierarchy
- FStaticMeshVertexDataInterface → TStaticMeshVertexData
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TStaticMeshVertexData
(
bool InNeedsCPUAccess |
Constructor | StaticMeshVertexData.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FVertexResourceArray | TResourceArray< VertexDataType, VERTEXBUFFER_ALIGNMENT > | StaticMeshVertexData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Data | FVertexResourceArray | StaticMeshVertexData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Assign
(
const TArray< VertexDataType >& Other |
Assignment. This is currently the only method which allows for modifying an existing resource array | StaticMeshVertexData.h | |
const FResourceArrayInterface * GetResourceArray () |
StaticMeshVertexData.h |
Overridden from FStaticMeshVertexDataInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Empty
(
uint32 NumVertices |
StaticMeshVertexData.h | ||
virtual bool GetAllowCPUAccess() |
StaticMeshVertexData.h | ||
virtual uint8 * GetDataPointer() |
StaticMeshVertexData.h | ||
virtual FResourceArrayInterface * GetResourceArray () |
StaticMeshVertexData.h | ||
virtual SIZE_T GetResourceSize() |
Helper function to return the amount of memory allocated by this container. | StaticMeshVertexData.h | |
virtual uint32 GetStride() |
StaticMeshVertexData.h | ||
virtual bool IsValidIndex
(
uint32 Index |
StaticMeshVertexData.h | ||
virtual int32 Num() |
Helper function to return the number of elements by this container. | StaticMeshVertexData.h | |
virtual void OverrideFreezeSizeAndAlignment
(
int64& Size, |
StaticMeshVertexData.h | ||
virtual void ResizeBuffer
(
uint32 NumVertices, |
Resizes the vertex data buffer, discarding any data which no longer fits. | StaticMeshVertexData.h | |
virtual void Serialize
(
FArchive& Ar, |
Serializer for this class | StaticMeshVertexData.h |