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

◆ in_out() [2/4]

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
ShaderExecutionContext & MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::in_out ( GpuBufferBinding::ElementType  type = GpuBufferBinding::ElementType::FLOAT32)
inline

Declare an INPUT_OUTPUT binding at an explicit index without pre-staging data.

Parameters
bindingBinding index.
typeElement type hint for the shader (default: FLOAT32).
Returns
Reference to this executor for chaining.

Definition at line 189 of file ShaderExecutionContext.hpp.

191 {
192 const uint32_t idx = next_binding_index();
193 m_bindings.push_back({ .set = 0,
194 .binding = idx,
196 .element_type = type });
197
198 return *this;
199 }
uint32_t next_binding_index() const
Returns one past the highest binding index currently registered.