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

◆ get_live_vertex_count()

std::optional< uint32_t > MayaFlux::Buffers::ComputeMeshBuffer::get_live_vertex_count ( ) const

The live vertex count from the most recent dispatch.

get_size_bytes() and the vertex layout describe worst-case capacity; this is the count a readback must be sized to.

Returns
The count, or nullopt before setup_processors() or when the counter is not mapped.

Definition at line 215 of file ComputeMeshBuffer.cpp.

216{
217 return m_sdf_processor ? m_sdf_processor->live_vertex_count() : std::nullopt;
218}
std::shared_ptr< SDFMeshProcessor > m_sdf_processor

References m_sdf_processor.