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

◆ is_valid()

bool MayaFlux::Kakshya::MeshAccess::is_valid ( ) const
inlinenoexcept

True when both vertex and index data are non-empty.

Definition at line 98 of file MeshAccess.hpp.

99 {
100 return vertex_ptr != nullptr && vertex_bytes > 0
101 && index_ptr != nullptr && index_count > 0
102 && layout.stride_bytes > 0;
103 }
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.