Navigation
API > API/Plugins > API/Plugins/MutableRuntime
Set of buffers storing mesh element data. Elements can be vertices, indices or faces.
| Name | FMeshBufferSet |
| Type | class |
| Header File | /Engine/Plugins/Mutable/Source/MutableRuntime/Public/MuR/MeshBufferSet.h |
| Include Path | #include "MuR/MeshBufferSet.h" |
Syntax
class FMeshBufferSet
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Buffers | TArray< FMeshBuffer > | MuR/MeshBufferSet.h | ||
| ElementCount | uint32 | MuR/MeshBufferSet.h | ||
| Flags | EMeshBufferSetFlags | MuR/MeshBufferSet.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddBuffer
(
const FMeshBufferSet& Other, |
Add a new buffer by cloning a buffer from another set. | MuR/MeshBufferSet.h | |
void CopyElement
(
uint32 FromIndex, |
Copy an element from one position to another, overwriting the other element. | MuR/MeshBufferSet.h | |
void FindChannel
(
EMeshBufferSemantic Semantic, |
Utility methods Find the index of a buffer channel by semantic and relative index inside the semantic. | MuR/MeshBufferSet.h | |
int32 GetAllocatedSize() |
MuR/MeshBufferSet.h | ||
int32 GetBufferChannelCount
(
int32 BufferIndex |
Get the number of channels in a vertex buffer. | MuR/MeshBufferSet.h | |
int32 GetBufferCount() |
Get the number of vertex buffers in the mesh | MuR/MeshBufferSet.h | |
const uint8 * GetBufferData
(
int32 Buffer |
MuR/MeshBufferSet.h | ||
uint8 * GetBufferData
(
int32 Buffer |
Get a pointer to the object-owned data of a buffer. | MuR/MeshBufferSet.h | |
uint32 GetBufferDataSize
(
int32 Buffer |
MuR/MeshBufferSet.h | ||
void GetChannel
(
int32 BufferIndex, |
Get a channel of a buffer by index | MuR/MeshBufferSet.h | |
int32 GetChannelOffset
(
int32 Buffer, |
Get the offset in bytes of the data of this channel inside an element data. | MuR/MeshBufferSet.h | |
int32 GetDataSize() |
Get the total memory size of the buffers and this struct | MuR/MeshBufferSet.h | |
int32 GetElementCount() |
Get the number of elements in the buffers | MuR/MeshBufferSet.h | |
int32 GetElementSize
(
int32 Buffer |
Get the size in bytes of a buffer element. | MuR/MeshBufferSet.h | |
bool HasAnySemanticWithDifferentFormat
(
EMeshBufferSemantic Semantic, |
Check that all channels of a specific semantic use the provided format. | MuR/MeshBufferSet.h | |
bool HasSameFormat
(
int32 ThisBufferIndex, |
Compare the format of the two buffers at index buffer and return true if they match. | MuR/MeshBufferSet.h | |
bool HasSameFormat
(
const FMeshBufferSet& Other |
Return true if the formats of the two vertex buffers set match. | MuR/MeshBufferSet.h | |
bool IsDescriptor () |
Check if this buffer set is only a format descriptor, e.i. | MuR/MeshBufferSet.h | |
bool IsSimilar
(
const FMeshBufferSet& Other |
Compare the mesh buffer with another one, but ignore internal data like generated vertex indices. | MuR/MeshBufferSet.h | |
bool IsSimilarRobust
(
const FMeshBufferSet& Other, |
Compare the mesh buffer with another one, but ignore internal data like generated vertex indices. | MuR/MeshBufferSet.h | |
bool IsSpecialBufferToIgnoreInSimilar
(
const FMeshBuffer& Buffer |
Compare the mesh buffer with another one, but ignore internal data like generated vertex indices. | MuR/MeshBufferSet.h | |
void RemoveBuffer
(
int32 BufferIndex |
Remove the buffer at the specified position. | MuR/MeshBufferSet.h | |
void ResetBufferIndices() |
Change the buffer descriptions so that all buffer indices start at 0 and are in the same order than memory. | MuR/MeshBufferSet.h | |
void Serialise
(
FOutputArchive& Arch |
MuR/MeshBufferSet.h | ||
void SetBuffer
(
int32 BufferIndex, |
Set all the channels of a buffer | MuR/MeshBufferSet.h | |
void SetBufferChannel
(
int32 BufferIndex, |
Set one channels of a buffer | MuR/MeshBufferSet.h | |
void SetBufferCount
(
int32 Count |
Set the number of vertex buffers in the mesh. | MuR/MeshBufferSet.h | |
void SetElementCount
(
int32 Count, |
Set the number of vertices in the mesh. | MuR/MeshBufferSet.h | |
void Unserialise
(
FInputArchive& Arch |
MuR/MeshBufferSet.h | ||
void UpdateOffsets
(
int32 BufferIndex |
MuR/MeshBufferSet.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FMeshBufferSet& Other |
MuR/MeshBufferSet.h |