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

◆ find_slot_index()

std::optional< uint32_t > MayaFlux::Nodes::Network::MeshNetwork::find_slot_index ( std::string_view  name) const

Find the index of a slot by name.

Returns
Index, or nullopt if not found.

Definition at line 92 of file MeshNetwork.cpp.

93{
94 for (uint32_t i = 0; i < static_cast<uint32_t>(m_slots.size()); ++i) {
95 if (m_slots[i].name == name)
96 return i;
97 }
98 return std::nullopt;
99}
std::string name
Definition VKDevice.cpp:123

References m_slots, and name.