engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TStaticMeshVertexData< VertexDataType > 模板类 参考

The implementation of the static mesh vertex data storage type. 更多...

#include <StaticMeshVertexData.h>

+ 类 TStaticMeshVertexData< VertexDataType > 继承关系图:

Public 成员函数

void Assign (const TArray< VertexDataType > &Other)
 Assignment. 更多...
 
uint8 * GetDataPointer () override
 
FResourceArrayInterface * GetResourceArray () override
 
SIZE_T GetResourceSize () const override
 Helper function to return the amount of memory allocated by this container. 更多...
 
uint32 GetStride () const override
 
virtual int32 Num () const override
 Helper function to return the number of elements by this container. 更多...
 
void ResizeBuffer (uint32 NumVertices, EResizeBufferFlags BufferFlags=EResizeBufferFlags::None) override
 Resizes the vertex data buffer, discarding any data which no longer fits. 更多...
 
void Serialize (FArchive &Ar, bool bForcePerElementSerialization=false) override
 Serializer for this class 更多...
 
 TStaticMeshVertexData (bool InNeedsCPUAccess=false)
 Constructor 更多...
 
- Public 成员函数 继承自 FStaticMeshVertexDataInterface
virtual uint8 * GetDataPointer ()=0
 
virtual FResourceArrayInterface * GetResourceArray ()=0
 
virtual uint32 GetStride () const =0
 
virtual int32 Num () const =0
 
virtual void ResizeBuffer (uint32 NumVertices, EResizeBufferFlags BufferFlags=EResizeBufferFlags::None)=0
 Resizes the vertex data buffer, discarding any data which no longer fits. 更多...
 
virtual void Serialize (FArchive &Ar, bool bForcePerElementSerialization=false)=0
 Serializer.
 
virtual ~FStaticMeshVertexDataInterface ()
 Virtual destructor.
 

详细描述

template<typename VertexDataType>
class TStaticMeshVertexData< VertexDataType >

The implementation of the static mesh vertex data storage type.

构造及析构函数说明

◆ TStaticMeshVertexData()

template<typename VertexDataType >
TStaticMeshVertexData< VertexDataType >::TStaticMeshVertexData ( bool  InNeedsCPUAccess = false)
inline

Constructor

参数
InNeedsCPUAccess- true if resource array data should be CPU accessible

成员函数说明

◆ Assign()

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

Assignment.

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

◆ GetDataPointer()

template<typename VertexDataType >
uint8 * TStaticMeshVertexData< VertexDataType >::GetDataPointer ( )
inlineoverridevirtual
返回
uint8 pointer to the resource data array

实现了 FStaticMeshVertexDataInterface.

◆ GetResourceArray()

template<typename VertexDataType >
FResourceArrayInterface * TStaticMeshVertexData< VertexDataType >::GetResourceArray ( )
inlineoverridevirtual
返回
resource array interface access

实现了 FStaticMeshVertexDataInterface.

◆ GetResourceSize()

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

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

返回
Number of bytes allocated by this container.

实现了 FStaticMeshVertexDataInterface.

◆ GetStride()

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

实现了 FStaticMeshVertexDataInterface.

◆ Num()

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

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

返回
Number of elements allocated by this container.

实现了 FStaticMeshVertexDataInterface.

◆ ResizeBuffer()

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

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

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

实现了 FStaticMeshVertexDataInterface.

◆ Serialize()

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

Serializer for this class

参数
Ar- archive to serialize to
B- data to serialize

实现了 FStaticMeshVertexDataInterface.


该类的文档由以下文件生成: