|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
Complete description of vertex data layout in a buffer. More...
#include <VertexLayout.hpp>
Collaboration diagram for MayaFlux::Kakshya::VertexLayout:Public Member Functions | |
| void | compute_stride () |
| Helper: compute stride from attributes if not explicitly set. | |
Public Attributes | |
| uint32_t | vertex_count = 0 |
| Total number of vertices in this buffer. | |
| uint32_t | stride_bytes = 0 |
| Total bytes per vertex (stride in Vulkan terms) e.g., 3 floats (position) + 3 floats (normal) = 24 bytes. | |
| std::vector< VertexAttributeLayout > | attributes |
| All attributes that make up one vertex Ordered by shader location (0, 1, 2, ...) | |
Static Private Member Functions | |
| static uint32_t | modality_size_bytes (DataModality mod) |
| Get size in bytes for a given modality Mirrors VKBuffer::get_format() logic. | |
Complete description of vertex data layout in a buffer.
Fully semantic and backend-agnostic. Portal layer translates to Vulkan. Derived from buffer's modality and dimensions.
Definition at line 41 of file VertexLayout.hpp.