CPU-side representation of batch-rendering instances organized as a Structure of Arrays.
More...
#include <VulkanRenderer.hpp>
|
| void | clear () |
| | Clears all array allocations.
|
| size_t | push (const InstanceData &inst) |
| | Appends a new instance.
|
| size_t | size () const |
| | Retrieves total active instance count.
|
| InstanceDataGPU | get (size_t i) const |
| | Retrieves CPU instancing details at index formatted for GPU.
|
|
| std::vector< glm::mat4 > | models |
| | Model matrices of all instances.
|
| std::vector< uint32_t > | materialIDs |
| | Material IDs of all instances.
|
| std::vector< uint32_t > | meshIDs |
| | Mesh IDs of all instances.
|
| std::vector< glm::vec4 > | colors |
| | Colors of all instances.
|
CPU-side representation of batch-rendering instances organized as a Structure of Arrays.
◆ clear()
| void InstanceDataSoA::clear |
( |
| ) |
|
|
inline |
Clears all array allocations.
◆ get()
Retrieves CPU instancing details at index formatted for GPU.
- Parameters
-
- Returns
- GPU format instance data.
◆ push()
Appends a new instance.
- Parameters
-
- Returns
- Index of the new instance.
◆ size()
| size_t InstanceDataSoA::size |
( |
| ) |
const |
|
inline |
Retrieves total active instance count.
- Returns
- Instance count.
◆ colors
| std::vector<glm::vec4> InstanceDataSoA::colors |
◆ materialIDs
| std::vector<uint32_t> InstanceDataSoA::materialIDs |
◆ meshIDs
| std::vector<uint32_t> InstanceDataSoA::meshIDs |
Mesh IDs of all instances.
◆ models
| std::vector<glm::mat4> InstanceDataSoA::models |
Model matrices of all instances.
The documentation for this struct was generated from the following file: