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

◆ input() [2/2]

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
template<typename T >
ShaderExecutionContext & MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::input ( uint32_t  binding,
const std::vector< T > &  data,
GpuBufferBinding::ElementType  type = GpuBufferBinding::ElementType::FLOAT32 
)
inline

Add an INPUT binding at an explicit index.

Template Parameters
TElement type of the data vector.
Parameters
bindingBinding index.
dataData to upload for this binding.
typeElement type hint for the shader (default: FLOAT32).
Returns
Reference to this executor for chaining.

Definition at line 105 of file ShaderExecutionContext.hpp.

107 {
108 m_bindings.push_back({ .set = 0,
109 .binding = binding,
111 .element_type = type });
112
113 this->set_binding_data(binding, data);
114 return *this;
115 }
void set_binding_data(size_t index, std::span< const T > data)
Pre-stage typed data for a specific binding slot, bypassing the default channel-flattening path in pr...