MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ vertex_count()

uint32_t MayaFlux::Kakshya::MeshAccess::vertex_count ( ) const
inlinenoexcept

Number of vertices derived from vertex_bytes and layout stride.

Returns
0 if layout.stride_bytes is zero.

Definition at line 79 of file MeshAccess.hpp.

80 {
81 if (layout.stride_bytes == 0) {
82 return 0;
83 }
84 return static_cast<uint32_t>(vertex_bytes / layout.stride_bytes);
85 }
uint32_t stride_bytes
Total bytes per vertex (stride in Vulkan terms) e.g., 3 floats (position) + 3 floats (normal) = 24 by...

References MayaFlux::Kakshya::VertexLayout::stride_bytes.