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

◆ get_field_stride()

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

Bytes per cell of the named field, or 0 if undeclared.

Definition at line 458 of file VolumeGridBuffer.cpp.

459{
460 auto it = m_fields.find(name);
461 if (it == m_fields.end()) {
462 return 0;
463 }
464 return it->second.stride_bytes;
465}
std::string name
Definition VKDevice.cpp:123
std::unordered_map< std::string, Field > m_fields

References m_fields, and name.