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

◆ next_binding_index()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
uint32_t MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::next_binding_index ( ) const
inlineprivate

Returns one past the highest binding index currently registered.

Used by the no-index fluent overloads to append sequentially after any existing bindings, including those set by explicit-index calls.

Definition at line 355 of file ShaderExecutionContext.hpp.

356 {
357 if (m_bindings.empty())
358 return 0;
359 return std::ranges::max(
360 m_bindings | std::views::transform([](const GpuBufferBinding& b) { return b.binding; }))
361 + 1;
362 }
size_t b

References b.