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

◆ output() [2/2]

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

Add an OUTPUT binding at an explicit index.

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

Definition at line 227 of file ShaderExecutionContext.hpp.

229 {
230 m_bindings.push_back({ .set = 0,
231 .binding = binding,
233 .element_type = type });
234
235 this->set_output_size(binding, byte_size);
236 return *this;
237 }
void set_output_size(size_t index, size_t byte_size)
Declare the byte capacity of an output binding independently of input data.