Skeletal mesh index buffers are 16 bit by default and 32 bit when called for. 更多...
#include <MultiSizeIndexContainer.h>
Public 成员函数 | |
| ENGINE_API void | CopyIndexBuffer (const TArray< uint32 > &NewArray) |
| Populates the index buffer with a new set of indices | |
| ENGINE_API void | CreateIndexBuffer (uint8 DataTypeSize) |
| Creates a new index buffer | |
| uint8 | GetDataTypeSize () const |
| Accessors | |
| ENGINE_API void | GetIndexBuffer (TArray< uint32 > &OutArray) const |
| Returns a 32 bit version of the index buffer | |
| void | InitResources () |
| Initialize the index buffer's render resources. | |
| ENGINE_API void | RebuildIndexBuffer (uint8 InDataTypeSize, const TArray< uint32 > &NewArray) |
| Repopulates the index buffer | |
| void | ReleaseResources () |
| Releases the index buffer's render resources. | |
| void | Serialize (FArchive &Ar, bool bNeedsCPUAccess) |
| Serialization. 更多... | |
Skeletal mesh index buffers are 16 bit by default and 32 bit when called for.
This class adds a level of abstraction on top of the index buffers so that we can treat them all as 32 bit.
| void FMultiSizeIndexContainer::Serialize | ( | FArchive & | Ar, |
| bool | bNeedsCPUAccess | ||
| ) |
Serialization.
| Ar | The archive with which to serialize. |
| bNeedsCPUAccess | If true, the loaded data will remain in CPU memory even after the RHI index buffer has been initialized. |