MayaFlux 0.5.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 410 of file ShaderExecutionContext.hpp.

411 {
412 if (m_bindings.empty())
413 return 0;
414 return std::ranges::max(
415 m_bindings | std::views::transform([](const GpuBufferBinding& b) { return b.binding; }))
416 + 1;
417 }
size_t b

References b, and MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::m_bindings.

Referenced by MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::in_out(), MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::in_out(), MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::input(), and MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::output().

+ Here is the caller graph for this function: