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

◆ live_vertex_count()

std::optional< uint32_t > MayaFlux::Buffers::SDFMeshProcessor::live_vertex_count ( ) const

The live vertex count the most recent dispatch produced.

Read from counter_buf()'s host mapping with no transfer. The owning buffer's allocation is worst-case capacity, not this count.

Returns
The count, or nullopt when the counter buffer is not allocated and mapped.

Definition at line 302 of file SDFMeshProcessor.cpp.

303{
304 const auto* counter = m_counter_buf
305 ? static_cast<const uint32_t*>(m_counter_buf->get_mapped_ptr())
306 : nullptr;
307 if (!counter) {
308 return std::nullopt;
309 }
310
311 return *counter;
312}
std::shared_ptr< VKBuffer > m_counter_buf

References m_counter_buf.