MayaFlux 1.0.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 449 of file VolumeGridBuffer.cpp.

450{
451 auto it = m_fields.find(name);
452 if (it == m_fields.end()) {
453 return 0;
454 }
455 return static_cast<size_t>(get_cell_count()) * it->second.stride_bytes;
456}
std::string name
Definition VKDevice.cpp:123
std::unordered_map< std::string, Field > m_fields
uint32_t get_cell_count() const
Total cell count.

References get_cell_count(), m_fields, and name.

+ Here is the call graph for this function: