Structure of Arrays representing mesh buffers and geometry information.
More...
#include <MeshSoA.hpp>
|
| size_t | push (const std::vector< Vertex > &verts, const std::vector< uint32_t > &inds) |
| | Pushes a new mesh geometry configuration.
|
| void | clear () |
| | Safely destroys and clears all allocated Vulkan buffers.
|
Structure of Arrays representing mesh buffers and geometry information.
◆ clear()
Safely destroys and clears all allocated Vulkan buffers.
◆ push()
| size_t MeshSoA::push |
( |
const std::vector< Vertex > & | verts, |
|
|
const std::vector< uint32_t > & | inds ) |
|
inline |
Pushes a new mesh geometry configuration.
- Parameters
-
| verts | List of vertices. |
| inds | List of indices. |
- Returns
- The index of the added mesh configuration.
◆ ids
| std::vector<uint32_t> MeshSoA::ids |
◆ indexBuffers
Allocated Vulkan index buffers.
◆ indices
| std::vector<std::vector<uint32_t> > MeshSoA::indices |
Arrays of indices for each mesh.
◆ vertexBuffers
Allocated Vulkan vertex buffers.
◆ vertices
| std::vector<std::vector<Vertex> > MeshSoA::vertices |
Arrays of vertices for each mesh.
The documentation for this struct was generated from the following file: