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

◆ get_field_semantics()

Kinesis::LatticeSemantics MayaFlux::Buffers::VolumeGridBuffer::get_field_semantics ( const std::string &  name) const

Interpretation declared for the named field.

Parameters
nameField name.
Returns
The declared semantics, or a default-constructed value if undeclared.

Returned as declared. A scalar field's variance member is meaningless and is not zeroed here: a consumer that cares about the distinction reads get_field_stride() alongside this.

Definition at line 467 of file VolumeGridBuffer.cpp.

468{
469 auto it = m_fields.find(name);
470 if (it == m_fields.end()) {
471 return {};
472 }
473 return it->second.semantics;
474}
std::string name
Definition VKDevice.cpp:123
std::unordered_map< std::string, Field > m_fields

References m_fields, and name.