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

◆ get_field_bytes()

size_t MayaFlux::Buffers::VolumeGridBuffer::get_field_bytes ( const std::string &  name) const

Byte size of one slot of the named field, or 0 if undeclared.

Definition at line 407 of file VolumeGridBuffer.cpp.

408{
409 auto it = m_fields.find(name);
410 if (it == m_fields.end()) {
411 return 0;
412 }
413 return static_cast<size_t>(get_cell_count()) * it->second.stride_bytes;
414}
std::unordered_map< std::string, Field > m_fields
uint32_t get_cell_count() const
Total cell count.

References get_cell_count(), and m_fields.

+ Here is the call graph for this function: