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

◆ set_skip_readback()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
void MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::set_skip_readback ( uint32_t  binding,
bool  skip 
)
inline

Set or clear skip_auto_readback for a binding by index.

When skip_auto_readback is true, the output buffer for this binding will not be read back to the CPU after dispatch. Use this to avoid unnecessary GPU-CPU synchronization when the output is consumed by another GPU stage rather than the CPU.

Parameters
bindingBinding index to modify.
skipWhether to skip automatic readback for this binding.

Definition at line 329 of file ShaderExecutionContext.hpp.

330 {
331 for (auto& b : m_bindings) {
332 if (b.binding == binding)
333 b.skip_auto_readback = skip;
334 }
335 }
size_t b

References b.