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

◆ get_state_bytes()

size_t MayaFlux::Buffers::NetworkGeometryBuffer::get_state_bytes ( const std::string &  name) const

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

Definition at line 360 of file NetworkGeometryBuffer.cpp.

361{
362 auto it = m_state_fields.find(name);
363 if (it == m_state_fields.end()) {
364 return 0;
365 }
366 return it->second.element_count * it->second.stride_bytes;
367}
std::string name
Definition VKDevice.cpp:143
std::unordered_map< std::string, StateField > m_state_fields

References m_state_fields, and name.