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

◆ in_out() [4/4]

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

Declare an INPUT_OUTPUT binding without pre-staging data.

The binding direction is registered but no data is uploaded at configuration time. Dispatch stages data from the input Datum automatically. Use when the shader reads and writes the same buffer and the input arrives via apply_operation rather than set_binding_data.

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

Definition at line 170 of file ShaderExecutionContext.hpp.

172 {
173 m_bindings.push_back({ .set = 0,
174 .binding = binding,
176 .element_type = type });
177
178 return *this;
179 }