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

◆ is_present()

bool MayaFlux::Kakshya::CompositeArray::is_present ( size_t  index,
size_t  field_index 
) const
privatenoexcept

Definition at line 132 of file Composite.cpp.

133{
134 const auto& rows = std::get<std::vector<uint8_t>>(m_rows);
135 const size_t byte_index = index * m_layout.stride_bytes() + field_index / 8;
136
137 return (rows[byte_index] & static_cast<uint8_t>(1U << (field_index % 8))) != 0;
138}
uint32_t rows
uint32_t index
Definition VKDevice.cpp:122
size_t stride_bytes() const noexcept
Bytes per packed element after finalization.
Definition Composite.hpp:86

References index, and rows.